[INFO] cloning repository https://github.com/zonyon/dnsproject [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zonyon/dnsproject" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzonyon%2Fdnsproject", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzonyon%2Fdnsproject'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bbe252a162b71e2bac954cb238039ef1643d78dc [INFO] building zonyon/dnsproject against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzonyon%2Fdnsproject" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zonyon/dnsproject on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zonyon/dnsproject [INFO] finished tweaking git repo https://github.com/zonyon/dnsproject [INFO] tweaked toml for git repo https://github.com/zonyon/dnsproject written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zonyon/dnsproject 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dda7add3b0461f916a2ba29be9ccba570bba29a910e7b9a1c6236416320238f6 [INFO] running `Command { std: "docker" "start" "-a" "dda7add3b0461f916a2ba29be9ccba570bba29a910e7b9a1c6236416320238f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dda7add3b0461f916a2ba29be9ccba570bba29a910e7b9a1c6236416320238f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dda7add3b0461f916a2ba29be9ccba570bba29a910e7b9a1c6236416320238f6", kill_on_drop: false }` [INFO] [stdout] dda7add3b0461f916a2ba29be9ccba570bba29a910e7b9a1c6236416320238f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 413df9285c20c588d64422e57e1c7590700ca306a753e431ecf0e4aa452a14ce [INFO] running `Command { std: "docker" "start" "-a" "413df9285c20c588d64422e57e1c7590700ca306a753e431ecf0e4aa452a14ce", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tp2bis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/DnsHeader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AAAA`, `A`, `Cname`, `MX`, `NS`, and `Ptr` [INFO] [stdout] --> src/DnsQuestion.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::DnsQuestion::Dnsrtype::{A, AAAA, Cname, MX, NS, Ptr}; [INFO] [stdout] | ^ ^^^^ ^^^^^ ^^ ^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/DnsQuestion.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | if (c != 0x0001) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - if (c != 0x0001) { [INFO] [stdout] 34 + if c != 0x0001 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::DnsHeader::DnsHeader` [INFO] [stdout] --> src/DnsRR.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::DnsHeader::DnsHeader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/DnsPacket.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let answer: u16 = self.header.ancount(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authority` [INFO] [stdout] --> src/DnsPacket.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let authority: u16 = self.header.nscount(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `additional` [INFO] [stdout] --> src/DnsPacket.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let additional: u16 = self.header.arcount(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_additional` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DnsPacket.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn genereRR(mut self){ [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/DnsQuestion.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(a: &str, b: Dnsrtype, mut c: u16) -> DnsQuestion { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe { listRR.push(c); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { listRR.push(k); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DnsHeader.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DnsHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | qr: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | opcode: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | aa: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | tc: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | rd: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | ra: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | z: bool, [INFO] [stdout] | ^ [INFO] [stdout] 14 | rcode: i16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | qdcount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | ancount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | nscount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | arcount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DnsHeader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl DnsHeader { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn id(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn qr(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn aa(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn tc(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn rd(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn ra(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn z(&self) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn rcode(&self) -> i16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn qdcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn ancount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn nscount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn arcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn set_id(&mut self, id: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn set_qr(&mut self, qr: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set_opcode(&mut self, opcode: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn set_aa(&mut self, aa: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn set_tc(&mut self, tc: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn set_rd(&mut self, rd: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_ra(&mut self, ra: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_z(&mut self, z: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn set_rcode(&mut self, rcode: i16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn set_qdcount(&mut self, qdcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn set_ancount(&mut self, ancount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn set_nscount(&mut self, nscount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn set_arcount(&mut self, arcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `question` are never read [INFO] [stdout] --> src/DnsPacket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | header: DnsHeader::DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | question: DnsQuestion::DnsQuestion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `genereRR` is never used [INFO] [stdout] --> src/DnsPacket.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl DnsPacket{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn genereRR(mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qname`, `Dnsrtype`, and `qclass` are never read [INFO] [stdout] --> src/DnsQuestion.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DnsQuestion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 4 | qname: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Dnsrtype: Dnsrtype, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | qclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `A`, `NS`, `MX`, `Cname`, and `Ptr` are never constructed [INFO] [stdout] --> src/DnsQuestion.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Dnsrtype { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 12 | A, [INFO] [stdout] | ^ [INFO] [stdout] 13 | AAAA, [INFO] [stdout] 14 | NS, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | MX, [INFO] [stdout] | ^^ [INFO] [stdout] 16 | Cname, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Ptr [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `no` is never used [INFO] [stdout] --> src/DnsQuestion.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Dnsrtype { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 20 | pub fn no(&self) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `qclass`, `set_Dnsrtype`, `set_qclass`, `Dnsrtype`, `qname`, and `set_qname` are never used [INFO] [stdout] --> src/DnsQuestion.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl DnsQuestion { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn qclass(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn set_qclass(&mut self, qclass: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn Dnsrtype(&self) -> &Dnsrtype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn qname(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn set_qname(&mut self, qname: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `question`, `ttl`, `rdlength`, and `rdata` are never read [INFO] [stdout] --> src/DnsRR.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DnsRR { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | question : DnsQuestion::DnsQuestion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | ttl: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | rdlength: i16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | rdata: u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dnsrtype` is never used [INFO] [stdout] --> src/DnsRR.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Dnsrtype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DnsRR.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DnsRR { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn question(&self) -> &DnsQuestion::DnsQuestion { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn ttl(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn rdlength(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn rdata(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_question(&mut self, question: DnsQuestion::DnsQuestion) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_ttl(&mut self, ttl: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_rdlength(&mut self, rdlength: i16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn set_rdata(&mut self, rdata: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsHeader` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod DnsHeader; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `dns_header` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsPacket` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod DnsPacket; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `dns_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsQuestion` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod DnsQuestion; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `dns_question` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsRR` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod DnsRR; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dns_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `listRR` should have a snake case name [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut listRR: Vec = vec![]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `list_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/DnsHeader.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | while LIST_ID.contains(&temp) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `genereRR` should have a snake case name [INFO] [stdout] --> src/DnsPacket.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn genereRR(mut self){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `genere_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Dnsrtype: Dnsrtype, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `set_dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn Dnsrtype(&self) -> &Dnsrtype { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.62s [INFO] running `Command { std: "docker" "inspect" "413df9285c20c588d64422e57e1c7590700ca306a753e431ecf0e4aa452a14ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "413df9285c20c588d64422e57e1c7590700ca306a753e431ecf0e4aa452a14ce", kill_on_drop: false }` [INFO] [stdout] 413df9285c20c588d64422e57e1c7590700ca306a753e431ecf0e4aa452a14ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fdc5ed5a2d39f401d4787389ebb2c915c62c7315a921476069d9bc4c9077a06 [INFO] running `Command { std: "docker" "start" "-a" "7fdc5ed5a2d39f401d4787389ebb2c915c62c7315a921476069d9bc4c9077a06", kill_on_drop: false }` [INFO] [stderr] Compiling tp2bis v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/DnsHeader.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AAAA`, `A`, `Cname`, `MX`, `NS`, and `Ptr` [INFO] [stdout] --> src/DnsQuestion.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::DnsQuestion::Dnsrtype::{A, AAAA, Cname, MX, NS, Ptr}; [INFO] [stdout] | ^ ^^^^ ^^^^^ ^^ ^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/DnsQuestion.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | if (c != 0x0001) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 34 - if (c != 0x0001) { [INFO] [stdout] 34 + if c != 0x0001 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::DnsHeader::DnsHeader` [INFO] [stdout] --> src/DnsRR.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::DnsHeader::DnsHeader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `answer` [INFO] [stdout] --> src/DnsPacket.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let answer: u16 = self.header.ancount(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_answer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authority` [INFO] [stdout] --> src/DnsPacket.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let authority: u16 = self.header.nscount(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authority` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `additional` [INFO] [stdout] --> src/DnsPacket.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let additional: u16 = self.header.arcount(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_additional` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/DnsPacket.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn genereRR(mut self){ [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/DnsQuestion.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(a: &str, b: Dnsrtype, mut c: u16) -> DnsQuestion { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | unsafe { listRR.push(c); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { listRR.push(k); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/DnsHeader.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DnsHeader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | id: u16, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | qr: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 8 | opcode: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | aa: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | tc: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | rd: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | ra: bool, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | z: bool, [INFO] [stdout] | ^ [INFO] [stdout] 14 | rcode: i16, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | qdcount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | ancount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | nscount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 18 | arcount: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DnsHeader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl DnsHeader { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn id(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn qr(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn aa(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn tc(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn rd(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn ra(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn z(&self) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn rcode(&self) -> i16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn qdcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn ancount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn nscount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn arcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn set_id(&mut self, id: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn set_qr(&mut self, qr: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn set_opcode(&mut self, opcode: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn set_aa(&mut self, aa: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn set_tc(&mut self, tc: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn set_rd(&mut self, rd: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn set_ra(&mut self, ra: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn set_z(&mut self, z: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn set_rcode(&mut self, rcode: i16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn set_qdcount(&mut self, qdcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn set_ancount(&mut self, ancount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn set_nscount(&mut self, nscount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn set_arcount(&mut self, arcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `question` are never read [INFO] [stdout] --> src/DnsPacket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DnsPacket { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | header: DnsHeader::DnsHeader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | question: DnsQuestion::DnsQuestion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `genereRR` is never used [INFO] [stdout] --> src/DnsPacket.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl DnsPacket{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn genereRR(mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `qname`, `Dnsrtype`, and `qclass` are never read [INFO] [stdout] --> src/DnsQuestion.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DnsQuestion { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 4 | qname: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | Dnsrtype: Dnsrtype, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | qclass: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `A`, `NS`, `MX`, `Cname`, and `Ptr` are never constructed [INFO] [stdout] --> src/DnsQuestion.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Dnsrtype { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 12 | A, [INFO] [stdout] | ^ [INFO] [stdout] 13 | AAAA, [INFO] [stdout] 14 | NS, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | MX, [INFO] [stdout] | ^^ [INFO] [stdout] 16 | Cname, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | Ptr [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `no` is never used [INFO] [stdout] --> src/DnsQuestion.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Dnsrtype { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 20 | pub fn no(&self) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `qclass`, `set_Dnsrtype`, `set_qclass`, `Dnsrtype`, `qname`, and `set_qname` are never used [INFO] [stdout] --> src/DnsQuestion.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl DnsQuestion { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn qclass(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn set_qclass(&mut self, qclass: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn Dnsrtype(&self) -> &Dnsrtype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn qname(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn set_qname(&mut self, qname: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `question`, `ttl`, `rdlength`, and `rdata` are never read [INFO] [stdout] --> src/DnsRR.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct DnsRR { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | question : DnsQuestion::DnsQuestion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | ttl: i32, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | rdlength: i16, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | rdata: u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Dnsrtype` is never used [INFO] [stdout] --> src/DnsRR.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Dnsrtype { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/DnsRR.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DnsRR { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn question(&self) -> &DnsQuestion::DnsQuestion { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn ttl(&self) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn rdlength(&self) -> i16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn rdata(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_question(&mut self, question: DnsQuestion::DnsQuestion) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn set_ttl(&mut self, ttl: i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn set_rdlength(&mut self, rdlength: i16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn set_rdata(&mut self, rdata: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsHeader` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod DnsHeader; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `dns_header` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsPacket` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod DnsPacket; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `dns_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsQuestion` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod DnsQuestion; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `dns_question` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DnsRR` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod DnsRR; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `dns_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `listRR` should have a snake case name [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut listRR: Vec = vec![]; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `list_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/DnsHeader.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | while LIST_ID.contains(&temp) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `genereRR` should have a snake case name [INFO] [stdout] --> src/DnsPacket.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn genereRR(mut self){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `genere_rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Dnsrtype: Dnsrtype, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `set_dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn set_Dnsrtype(&mut self, Dnsrtype: Dnsrtype) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/DnsQuestion.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn Dnsrtype(&self) -> &Dnsrtype { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "7fdc5ed5a2d39f401d4787389ebb2c915c62c7315a921476069d9bc4c9077a06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fdc5ed5a2d39f401d4787389ebb2c915c62c7315a921476069d9bc4c9077a06", kill_on_drop: false }` [INFO] [stdout] 7fdc5ed5a2d39f401d4787389ebb2c915c62c7315a921476069d9bc4c9077a06