[INFO] cloning repository https://github.com/cnuebred/qrcode.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cnuebred/qrcode.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnuebred%2Fqrcode.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnuebred%2Fqrcode.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bbac039eb85e1484e85536e145b7b74fccd4421 [INFO] checking cnuebred/qrcode.rs against master#d14d202262d13df896b0c624b0cec6e4bfde631a for pr-143028 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnuebred%2Fqrcode.rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/cnuebred/qrcode.rs [INFO] finished tweaking git repo https://github.com/cnuebred/qrcode.rs [INFO] tweaked toml for git repo https://github.com/cnuebred/qrcode.rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/cnuebred/qrcode.rs on toolchain d14d202262d13df896b0c624b0cec6e4bfde631a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/cnuebred/qrcode.rs 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" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 438f7ac2b677c4cc361e5dbfbc1d38437031f1e928e9ce6ccb9d580616738184 [INFO] running `Command { std: "docker" "start" "-a" "438f7ac2b677c4cc361e5dbfbc1d38437031f1e928e9ce6ccb9d580616738184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "438f7ac2b677c4cc361e5dbfbc1d38437031f1e928e9ce6ccb9d580616738184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "438f7ac2b677c4cc361e5dbfbc1d38437031f1e928e9ce6ccb9d580616738184", kill_on_drop: false }` [INFO] [stdout] 438f7ac2b677c4cc361e5dbfbc1d38437031f1e928e9ce6ccb9d580616738184 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49e2a5cdc69c340bf5aa55e4deb04715867c05dc6aff70a5b473265a0c854e34 [INFO] running `Command { std: "docker" "start" "-a" "49e2a5cdc69c340bf5aa55e4deb04715867c05dc6aff70a5b473265a0c854e34", kill_on_drop: false }` [INFO] [stderr] Checking qrcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/reed_solomon.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | bin_msg.push(format!("{:08b}", BLANK_FILLER[(i % 2)])); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 93 - bin_msg.push(format!("{:08b}", BLANK_FILLER[(i % 2)])); [INFO] [stdout] 93 + bin_msg.push(format!("{:08b}", BLANK_FILLER[i % 2])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/reed_solomon.rs:93:57 [INFO] [stdout] | [INFO] [stdout] 93 | bin_msg.push(format!("{:08b}", BLANK_FILLER[(i % 2)])); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 93 - bin_msg.push(format!("{:08b}", BLANK_FILLER[(i % 2)])); [INFO] [stdout] 93 + bin_msg.push(format!("{:08b}", BLANK_FILLER[i % 2])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/reed_solomon.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | for i in 0..(joined_bin_msg.len() / 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/reed_solomon.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | for i in 0..(joined_bin_msg.len() / 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sub` is never read [INFO] [stdout] --> src/reed_solomon.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut sub: f32 = 0.0; [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: unused variable: `i` [INFO] [stdout] --> src/reed_solomon.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | for i in 0..error_correction_data.2[group_number] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sub` is never read [INFO] [stdout] --> src/reed_solomon.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let mut sub: f32 = 0.0; [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: unused variable: `i` [INFO] [stdout] --> src/reed_solomon.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | for i in 0..error_correction_data.2[group_number] { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/qr_code.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | for i in 0..(size_y) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/qr_code.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | for i in 0..(size_x) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/qr_code.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | for i in 0..(size_y) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/qr_code.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | for i in 0..(size_x) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/qr_code.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/qr_code.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | for j in 0..3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `i` is assigned to, but never used [INFO] [stdout] --> src/qr_code.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | let mut i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_i` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scrap` [INFO] [stdout] --> src/qr_code.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | let scrap: Vec = format_vec[(format_vec.len() - 2)..].to_vec(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/qr_code.rs:286:17 [INFO] [stdout] | [INFO] [stdout] 286 | for j in 0..3 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scrap` [INFO] [stdout] --> src/qr_code.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | let scrap: Vec = format_vec[(format_vec.len() - 2)..].to_vec(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scrap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Numeric`, `Alpha`, and `Kanji` are never constructed [INFO] [stdout] --> src/config.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ByteNameOfMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 10 | Byte, [INFO] [stdout] 11 | Numeric, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | Alpha, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Kanji, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ByteNameOfMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EntityPolynomial` is never used [INFO] [stdout] --> src/config.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub type EntityPolynomial = (i16, i16, i16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReedSolomonOptions` is never used [INFO] [stdout] --> src/config.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type ReedSolomonOptions = (i8, ErrorLevel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODULO_BYTE_WISE` is never used [INFO] [stdout] --> src/config.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const MODULO_BYTE_WISE: u32 = 285; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_EC` is never used [INFO] [stdout] --> src/config.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const TABLE_EC: [[(u8, u8); 4]; 40] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ErrorLevel` is never used [INFO] [stdout] --> src/config.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ErrorLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ByteNameOfMode` is never used [INFO] [stdout] --> src/config.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ByteNameOfMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mask` is never used [INFO] [stdout] --> src/config.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Mask { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION_FORMAT_POLYNOMIAL` is never used [INFO] [stdout] --> src/config.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const VERSION_FORMAT_POLYNOMIAL: [[u8; 8]; 2] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORMAT_STRING_XOR_VALUE` is never used [INFO] [stdout] --> src/config.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const FORMAT_STRING_XOR_VALUE: &str = "101010000010010"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_INDICATOR` is never used [INFO] [stdout] --> src/config.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const LEVEL_INDICATOR: [u8; 4] = [1, 3, 0, 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLANK_FILLER` is never used [INFO] [stdout] --> src/config.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const BLANK_FILLER: [u8; 2] = [236, 17]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALIGNMENT_LOCATION_BASE` is never used [INFO] [stdout] --> src/config.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const ALIGNMENT_LOCATION_BASE: [u32; 2] = [6, 18]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE_SIZE` is never used [INFO] [stdout] --> src/config.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub const BASE_SIZE: u32 = 21; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MODE_INDICATOR` is never used [INFO] [stdout] --> src/config.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn MODE_INDICATOR(mode: &ByteNameOfMode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LENGTH_BITS` is never used [INFO] [stdout] --> src/config.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const LENGTH_BITS: [[u8; 3]; 4] = [[10, 12, 14], [9, 11, 13], [8, 16, 16], [8, 10, 12]]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REMINDER` is never used [INFO] [stdout] --> src/config.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const REMINDER: [usize; 39] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReedSolomonData` is never constructed [INFO] [stdout] --> src/reed_solomon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ReedSolomonData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/reed_solomon.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ReedSolomonData { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn create_format_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn create_version_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn generate_data_bits(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn generate_content(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn create_reed_solomon_matrix(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn get_version_error_level(&mut self, min_error_level: ErrorLevel, min_version: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn xor_string_operator( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn main_string_format( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MODE_INDICATOR` should have a snake case name [INFO] [stdout] --> src/config.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn MODE_INDICATOR(mode: &ByteNameOfMode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_indicator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/qr_code.rs:181:23 [INFO] [stdout] | [INFO] [stdout] 181 | if (up && y < 0) || (!up && y > self.qrcode.size_y - 1) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Numeric`, `Alpha`, and `Kanji` are never constructed [INFO] [stdout] --> src/config.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ByteNameOfMode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 10 | Byte, [INFO] [stdout] 11 | Numeric, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | Alpha, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Kanji, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ByteNameOfMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EntityPolynomial` is never used [INFO] [stdout] --> src/config.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub type EntityPolynomial = (i16, i16, i16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReedSolomonOptions` is never used [INFO] [stdout] --> src/config.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub type ReedSolomonOptions = (i8, ErrorLevel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODULO_BYTE_WISE` is never used [INFO] [stdout] --> src/config.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const MODULO_BYTE_WISE: u32 = 285; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TABLE_EC` is never used [INFO] [stdout] --> src/config.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const TABLE_EC: [[(u8, u8); 4]; 40] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ErrorLevel` is never used [INFO] [stdout] --> src/config.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ErrorLevel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ByteNameOfMode` is never used [INFO] [stdout] --> src/config.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ByteNameOfMode { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Mask` is never used [INFO] [stdout] --> src/config.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Mask { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VERSION_FORMAT_POLYNOMIAL` is never used [INFO] [stdout] --> src/config.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const VERSION_FORMAT_POLYNOMIAL: [[u8; 8]; 2] = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORMAT_STRING_XOR_VALUE` is never used [INFO] [stdout] --> src/config.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const FORMAT_STRING_XOR_VALUE: &str = "101010000010010"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LEVEL_INDICATOR` is never used [INFO] [stdout] --> src/config.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const LEVEL_INDICATOR: [u8; 4] = [1, 3, 0, 2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLANK_FILLER` is never used [INFO] [stdout] --> src/config.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const BLANK_FILLER: [u8; 2] = [236, 17]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALIGNMENT_LOCATION_BASE` is never used [INFO] [stdout] --> src/config.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | pub const ALIGNMENT_LOCATION_BASE: [u32; 2] = [6, 18]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BASE_SIZE` is never used [INFO] [stdout] --> src/config.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub const BASE_SIZE: u32 = 21; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MODE_INDICATOR` is never used [INFO] [stdout] --> src/config.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn MODE_INDICATOR(mode: &ByteNameOfMode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LENGTH_BITS` is never used [INFO] [stdout] --> src/config.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const LENGTH_BITS: [[u8; 3]; 4] = [[10, 12, 14], [9, 11, 13], [8, 16, 16], [8, 10, 12]]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REMINDER` is never used [INFO] [stdout] --> src/config.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const REMINDER: [usize; 39] = [ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReedSolomonData` is never constructed [INFO] [stdout] --> src/reed_solomon.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ReedSolomonData { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/reed_solomon.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ReedSolomonData { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn create_format_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn create_version_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn generate_data_bits(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn generate_content(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn create_reed_solomon_matrix(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn get_version_error_level(&mut self, min_error_level: ErrorLevel, min_version: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | fn xor_string_operator( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 192 | fn main_string_format( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `MODE_INDICATOR` should have a snake case name [INFO] [stdout] --> src/config.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn MODE_INDICATOR(mode: &ByteNameOfMode) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mode_indicator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/qr_code.rs:181:23 [INFO] [stdout] | [INFO] [stdout] 181 | if (up && y < 0) || (!up && y > self.qrcode.size_y - 1) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "49e2a5cdc69c340bf5aa55e4deb04715867c05dc6aff70a5b473265a0c854e34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49e2a5cdc69c340bf5aa55e4deb04715867c05dc6aff70a5b473265a0c854e34", kill_on_drop: false }` [INFO] [stdout] 49e2a5cdc69c340bf5aa55e4deb04715867c05dc6aff70a5b473265a0c854e34