[INFO] cloning repository https://github.com/Zwiieb/DNS_RUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zwiieb/DNS_RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZwiieb%2FDNS_RUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZwiieb%2FDNS_RUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c87fa2a01671e5355392382f4dbdebaa3a990d82 [INFO] checking Zwiieb/DNS_RUST/c87fa2a01671e5355392382f4dbdebaa3a990d82 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZwiieb%2FDNS_RUST" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Zwiieb/DNS_RUST on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Zwiieb/DNS_RUST [INFO] finished tweaking git repo https://github.com/Zwiieb/DNS_RUST [INFO] tweaked toml for git repo https://github.com/Zwiieb/DNS_RUST written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Zwiieb/DNS_RUST 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] abb047a1be25e83b172047a2f40c21bb985e18e8795a74b0c658f1cbfe500c02 [INFO] running `Command { std: "docker" "start" "-a" "abb047a1be25e83b172047a2f40c21bb985e18e8795a74b0c658f1cbfe500c02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "abb047a1be25e83b172047a2f40c21bb985e18e8795a74b0c658f1cbfe500c02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abb047a1be25e83b172047a2f40c21bb985e18e8795a74b0c658f1cbfe500c02", kill_on_drop: false }` [INFO] [stdout] abb047a1be25e83b172047a2f40c21bb985e18e8795a74b0c658f1cbfe500c02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28bd93a4d06204a78e0952d061d4b236fbedf52507f9f9f98541742c4e6a60b8 [INFO] running `Command { std: "docker" "start" "-a" "28bd93a4d06204a78e0952d061d4b236fbedf52507f9f9f98541742c4e6a60b8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tp2 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tests_dns_packet.rs (3 fixes) [INFO] [stderr] Fixed src/tests_dns_rtype.rs (1 fix) [INFO] [stderr] Fixed src/tests_dns_question.rs (1 fix) [INFO] [stderr] Fixed src/test_dns_rr.rs (2 fixes) [INFO] [stderr] Fixed src/dns_question.rs (1 fix) [INFO] [stderr] Fixed src/test_dns_header.rs (2 fixes) [INFO] [stderr] Fixed src/dns_header.rs (3 fixes) [INFO] [stdout] warning: value assigned to `rrtype` is never read [INFO] [stdout] --> src/dns_rr.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | _=> rrtype=1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rrtype` is never read [INFO] [stdout] --> src/dns_rr.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | _=> rrtype=1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `split` [INFO] [stdout] --> src/dns_question.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let split = self.qname.split("."); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_split` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rtype` is assigned to, but never used [INFO] [stdout] --> src/dns_question.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut rtype = DnsRType::A; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rtype` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | 1 => rtype = DnsRType::A, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 28 => rtype = DnsRType::AAAA, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | 2 => rtype = DnsRType::NS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 5 => rtype = DnsRType::CNAME, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | 12 => rtype = DnsRType::PTR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | 15 => rtype = DnsRType::MX, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dns_packet.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | for z in 0..(ancount+nscount+arcount){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsRR` is never constructed [INFO] [stdout] --> src/dns_rr.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DnsRR { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dns_rr.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl DnsRR { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(rname: u16, rtype: DnsRType,rclass:u16,ttl:u32,rdlength: u16,rdata: String)->DnsRR{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn serialize(&self)->Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn deserialize(vec : Vec)-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_size(&self)-> usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn ttl(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn rdlength(&self) -> u16 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn rdata(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn set_ttl(&mut self, ttl: u32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn set_rdlength(&mut self, rdlength: u16) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn set_rdata(&mut self, rdata: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn rname(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn Dnsrtype(&self) -> DnsRType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn rclass(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn set_rname(&mut self, rname: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn set_Dnsrtype(&mut self, Dnsrtype: DnsRType) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn set_rclass(&mut self, rclass: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LIST_ID` is never used [INFO] [stdout] --> src/dns_header.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | static mut LIST_ID: Vec = vec![]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsHeader` is never constructed [INFO] [stdout] --> src/dns_header.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DnsHeader { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dns_header.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl DnsHeader { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new(qr: bool, aa: bool, tc: bool, ra: bool, rcode: u16, qdcount: u16, ancount: u16, nscount: u16, arcount: u16) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn serialize(&self) ->Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn id(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn qr(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn opcode(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn aa(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn tc(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn rd(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn ra(&self) -> bool { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn z(&self) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn rcode(&self) -> u16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn qdcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn ancount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn nscount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn arcount(&self) -> u16 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn set_id(&mut self, id: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn set_qr(&mut self, qr: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn set_opcode(&mut self, opcode: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn set_aa(&mut self, aa: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn set_tc(&mut self, tc: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn set_rd(&mut self, rd: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn set_ra(&mut self, ra: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn set_z(&mut self, z: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn set_rcode(&mut self, rcode: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn set_qdcount(&mut self, qdcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn set_ancount(&mut self, ancount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn set_nscount(&mut self, nscount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn set_arcount(&mut self, arcount: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AAAA`, `NS`, `CNAME`, `PTR`, and `MX` are never constructed [INFO] [stdout] --> src/dns_rtype.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum DnsRType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 4 | A, [INFO] [stdout] 5 | AAAA, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | NS, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | CNAME, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | PTR, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | MX, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `DnsRType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dns_question.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl DnsQuestion { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn deserialize(vecQuestion : Vec)->DnsQuestion{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_size(&self)-> usize{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn qname(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn qtype(&self) -> &dns_rtype::DnsRType { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn qclass(&self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn set_qname(&mut self, qname: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn set_qtype(&mut self, qtype: dns_rtype::DnsRType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn set_qclass(&mut self, qclass: u16) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsPacket` is never constructed [INFO] [stdout] --> src/dns_packet.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DnsPacket { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/dns_packet.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl DnsPacket { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(qr: bool, aa: bool, tc: bool, ra: bool, rcode: u16, qdcount: u16, ancount: u16, nscount: u16,arcount : u16, qname:String,o... [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn serialize(&self)-> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn byte_size(&self)-> usize{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn to_dname(vec: Vec,offset : u8 )->String{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn header(&mut self) -> &mut dns_header::DnsHeader { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn question(&mut self) -> &mut dns_question::DnsQuestion { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn reponse(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn set_header(&mut self, header: dns_header::DnsHeader) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_question(&mut self, question: dns_question::DnsQuestion) {self.question = question;} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 78 | pub fn set_reponse(&mut self, reponse: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_get_set_qtype` is never used [INFO] [stdout] --> src/tests_dns_question.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn test_get_set_qtype(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | Dnsrtype: DnsRType, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `dnsrtype` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RRName` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let RRName = self.rname.to_be_bytes(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `rrname` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RRtype` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let RRtype = self.Dnsrtype.no().to_be_bytes(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `rrtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RRclass` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let RRclass = self.rclass.to_be_bytes(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `rrclass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TTL` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let TTL = self.ttl.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ttl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RDL` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let RDL = self.rdlength.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `rdl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Dnsrtype` should have a snake case name [INFO] [stdout] --> src/dns_rr.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn Dnsrtype(&self) -> 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/dns_rr.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | 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/dns_rr.rs:161:36 [INFO] [stdout] | [INFO] [stdout] 161 | 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: variable `idB` should have a snake case name [INFO] [stdout] --> src/dns_header.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let idB = self.id.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `id_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `qdB` should have a snake case name [INFO] [stdout] --> src/dns_header.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let qdB = self.qdcount.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `qd_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `anB` should have a snake case name [INFO] [stdout] --> src/dns_header.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let anB = self.ancount.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `an_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nsB` should have a snake case name [INFO] [stdout] --> src/dns_header.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let nsB = self.nscount.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ns_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `arB` should have a snake case name [INFO] [stdout] --> src/dns_header.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let arB = self.arcount.to_be_bytes(); [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ar_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Qtype` should have a snake case name [INFO] [stdout] --> src/dns_question.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let Qtype = self.qtype.no().to_be_bytes(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `qtype` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Qclass` should have a snake case name [INFO] [stdout] --> src/dns_question.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let Qclass = self.qclass.to_be_bytes(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `qclass` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `vecQuestion` should have a snake case name [INFO] [stdout] --> src/dns_question.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn deserialize(vecQuestion : Vec)->DnsQuestion{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vec_question` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `RR` should have a snake case name [INFO] [stdout] --> src/dns_packet.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | for RR in self.reponse.iter(){ [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_question` [INFO] [stdout] --> src/tests_dns_question.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | let question = dns_question::DnsQuestion::new(String::from("3"),dns_rtype::DnsRType::AAAA,0x0001); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `dns_question` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::dns_question::DnsQuestion; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsQuestion`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - let question = dns_question::DnsQuestion::new(String::from("3"),dns_rtype::DnsRType::AAAA,0x0001); [INFO] [stdout] 7 + let question = DnsQuestion::new(String::from("3"),dns_rtype::DnsRType::AAAA,0x0001); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_question` [INFO] [stdout] --> src/tests_dns_question.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let q = dns_question::DnsQuestion::new("".to_string(), DnsRType::A, 0x0001); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `dns_question` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::tests_dns_question::DnsQuestion; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsQuestion`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 50 - let q = dns_question::DnsQuestion::new("".to_string(), DnsRType::A, 0x0001); [INFO] [stdout] 50 + let q = DnsQuestion::new("".to_string(), DnsRType::A, 0x0001); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rtype` [INFO] [stdout] --> src/tests_dns_rtype.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(dns_rtype::DnsRType::AAAA.no(), 28); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `dns_rtype` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRType`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - assert_eq!(dns_rtype::DnsRType::AAAA.no(), 28); [INFO] [stdout] 4 + assert_eq!(DnsRType::AAAA.no(), 28); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 4 + DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:4:94 [INFO] [stdout] | [INFO] [stdout] 4 | dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/tests_dns_packet.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let h = dns_header::DnsHeader::new(false, false, false, false, 20, 0, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 8 - let h = dns_header::DnsHeader::new(false, false, false, false, 20, 0, 0, 0, 0); [INFO] [stdout] 8 + let h = DnsHeader::new(false, false, false, false, 20, 0, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 9 - let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 9 + let mut p = DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:9:106 [INFO] [stdout] | [INFO] [stdout] 9 | ...lse, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_question` [INFO] [stdout] --> src/tests_dns_packet.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let q = dns_question::DnsQuestion::new("".to_string(), DnsRType::AAAA, 0x0001); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `dns_question` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_question::DnsQuestion; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsQuestion`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - let q = dns_question::DnsQuestion::new("".to_string(), DnsRType::AAAA, 0x0001); [INFO] [stdout] 15 + let q = DnsQuestion::new("".to_string(), DnsRType::AAAA, 0x0001); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | let q = dns_question::DnsQuestion::new("".to_string(), DnsRType::AAAA, 0x0001); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 16 - let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 16 + let mut p = DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:16:106 [INFO] [stdout] | [INFO] [stdout] 16 | ...lse, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRR` [INFO] [stdout] --> src/tests_dns_packet.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | let r = vec![DnsRR::new(0, DnsRType::A, 0, 25, 0, "".to_string())]; [INFO] [stdout] | ^^^^^ use of undeclared type `DnsRR` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let r = vec![DnsRR::new(0, DnsRType::A, 0, 25, 0, "".to_string())]; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 23 - let mut p = dns_packet::DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 23 + let mut p = DnsPacket::new(false, false, false, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/tests_dns_packet.rs:23:106 [INFO] [stdout] | [INFO] [stdout] 23 | ...lse, false, 0, 0, 0, 0, 0, "".to_string(), 0, DnsRType::A, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA,... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 29 - let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 29 + let pac = DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rtype` [INFO] [stdout] --> src/tests_dns_packet.rs:29:112 [INFO] [stdout] | [INFO] [stdout] 29 | ...2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `dns_rtype` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRType`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 29 - let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 29 + let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("google"), 0x0001, dns_rtype::DnsRType::... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 34 - let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("google"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 34 + let pac = DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("google"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rtype` [INFO] [stdout] --> src/tests_dns_packet.rs:34:117 [INFO] [stdout] | [INFO] [stdout] 34 | ... 4, 5, String::from("google"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `dns_rtype` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRType`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 34 - let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("google"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 34 + let pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("google"), 0x0001, DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(dns_packet::DnsPacket::to_dname(pac.serialize(), 12), "google") [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 35 - assert_eq!(dns_packet::DnsPacket::to_dname(pac.serialize(), 12), "google") [INFO] [stdout] 35 + assert_eq!(DnsPacket::to_dname(pac.serialize(), 12), "google") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_packet` [INFO] [stdout] --> src/tests_dns_packet.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | let mut pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::A... [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_packet` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_packet::DnsPacket; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsPacket`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 39 - let mut pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 39 + let mut pac = DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rtype` [INFO] [stdout] --> src/tests_dns_packet.rs:39:116 [INFO] [stdout] | [INFO] [stdout] 39 | ...2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `dns_rtype` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRType`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 39 - let mut pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, dns_rtype::DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] 39 + let mut pac = dns_packet::DnsPacket::new(false, false, false, false, 1, 2, 3, 4, 5, String::from("3"), 0x0001, DnsRType::AAAA, 0x0001, 0, 0, "".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 8 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 8 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 17 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 17 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 25 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 25 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 32 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 32 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 40 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 40 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 48 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 48 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 56 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 56 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 64 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 64 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 72 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 72 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 79 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 79 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 87 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 87 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 95 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 95 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 103 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 103 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_header` [INFO] [stdout] --> src/test_dns_header.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `dns_header` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use crate::dns_header::DnsHeader; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsHeader`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 111 - let mut h = dns_header::DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] 111 + let mut h = DnsHeader::new(false, true, false, false, 0, 1, 0, 0, 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | let h = dns_rr::DnsRR::new(0,DnsRType::PTR,1, 2,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - let h = dns_rr::DnsRR::new(0,DnsRType::PTR,1, 2,0,"test".to_string()); [INFO] [stdout] 4 + let h = DnsRR::new(0,DnsRType::PTR,1, 2,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | let h = dns_rr::DnsRR::new(0,DnsRType::PTR,1, 2,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | let h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 11 - let h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 11 + let h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | let h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 19 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 19 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 27 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 27 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:27:42 [INFO] [stdout] | [INFO] [stdout] 27 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 35 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 35 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:35:42 [INFO] [stdout] | [INFO] [stdout] 35 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 43 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 43 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:43:42 [INFO] [stdout] | [INFO] [stdout] 43 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 51 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 51 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | h.set_Dnsrtype(DnsRType::PTR); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:53:39 [INFO] [stdout] | [INFO] [stdout] 53 | assert!(matches!(h.Dnsrtype(),DnsRType::PTR)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dns_rr` [INFO] [stdout] --> src/test_dns_rr.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `dns_rr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dns_rr::DnsRR; [INFO] [stdout] | [INFO] [stdout] help: if you import `DnsRR`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 59 - let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] 59 + let mut h = DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DnsRType` [INFO] [stdout] --> src/test_dns_rr.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 59 | let mut h = dns_rr::DnsRR::new(1,DnsRType::A,1, 5,0,"test".to_string()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DnsRType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::DnsRType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rrtype` is never read [INFO] [stdout] --> src/dns_rr.rs:75:29 [INFO] [stdout] | [INFO] [stdout] 75 | _=> rrtype=1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rrtype` is never read [INFO] [stdout] --> src/dns_rr.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | _=> rrtype=1 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `split` [INFO] [stdout] --> src/dns_question.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let split = self.qname.split("."); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_split` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rtype` is assigned to, but never used [INFO] [stdout] --> src/dns_question.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let mut rtype = DnsRType::A; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rtype` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | 1 => rtype = DnsRType::A, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | 28 => rtype = DnsRType::AAAA, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | 2 => rtype = DnsRType::NS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | 5 => rtype = DnsRType::CNAME, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | 12 => rtype = DnsRType::PTR, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rtype` is never read [INFO] [stdout] --> src/dns_question.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | 15 => rtype = DnsRType::MX, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dns_packet.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | for z in 0..(ancount+nscount+arcount){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/tests_dns_question.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let v2 = DnsQuestion::deserialize(v); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/tests_dns_question.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | assert!(matches!(q,v2)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 55 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tp2` (bin "tp2" test) due to 56 previous errors; 13 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "28bd93a4d06204a78e0952d061d4b236fbedf52507f9f9f98541742c4e6a60b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28bd93a4d06204a78e0952d061d4b236fbedf52507f9f9f98541742c4e6a60b8", kill_on_drop: false }` [INFO] [stdout] 28bd93a4d06204a78e0952d061d4b236fbedf52507f9f9f98541742c4e6a60b8