[INFO] cloning repository https://github.com/JeremyMet/DES4RUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JeremyMet/DES4RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeremyMet%2FDES4RUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeremyMet%2FDES4RUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d441bec48897f3fcac4846938cb54e780d78507e [INFO] checking JeremyMet/DES4RUST against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJeremyMet%2FDES4RUST" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JeremyMet/DES4RUST on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JeremyMet/DES4RUST [INFO] finished tweaking git repo https://github.com/JeremyMet/DES4RUST [INFO] tweaked toml for git repo https://github.com/JeremyMet/DES4RUST written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/JeremyMet/DES4RUST already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b48cd66905781c1bc9f114730c501d09cbccf7e11dd36243449421aa001df3c [INFO] running `Command { std: "docker" "start" "-a" "3b48cd66905781c1bc9f114730c501d09cbccf7e11dd36243449421aa001df3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b48cd66905781c1bc9f114730c501d09cbccf7e11dd36243449421aa001df3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b48cd66905781c1bc9f114730c501d09cbccf7e11dd36243449421aa001df3c", kill_on_drop: false }` [INFO] [stdout] 3b48cd66905781c1bc9f114730c501d09cbccf7e11dd36243449421aa001df3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c229faa651ae41eb1f30feea4f2295f0a5f8175346dfd6963d86abddd37c5ae [INFO] running `Command { std: "docker" "start" "-a" "4c229faa651ae41eb1f30feea4f2295f0a5f8175346dfd6963d86abddd37c5ae", kill_on_drop: false }` [INFO] [stderr] Checking DES v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | output_vector[byte_output_index] ^= (bit_value << bit_output_index) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - output_vector[byte_output_index] ^= (bit_value << bit_output_index) ; [INFO] [stdout] 30 + output_vector[byte_output_index] ^= bit_value << bit_output_index ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (byte_index_0 == byte_index_1) { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if (byte_index_0 == byte_index_1) { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] 112 + if byte_index_0 == byte_index_1 { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if (sbox_index & 1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if (sbox_index & 1 == 0) { [INFO] [stdout] 126 + if sbox_index & 1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | if (round_iter==15) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (round_iter==15) [INFO] [stdout] 147 + if round_iter==15 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/main.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:30:43 [INFO] [stdout] | [INFO] [stdout] 30 | output_vector[byte_output_index] ^= (bit_value << bit_output_index) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - output_vector[byte_output_index] ^= (bit_value << bit_output_index) ; [INFO] [stdout] 30 + output_vector[byte_output_index] ^= bit_value << bit_output_index ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (byte_index_0 == byte_index_1) { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if (byte_index_0 == byte_index_1) { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] 112 + if byte_index_0 == byte_index_1 { // si le début et la fin du bloc de 6-bit sont dans le même octet [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if (sbox_index & 1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if (sbox_index & 1 == 0) { [INFO] [stdout] 126 + if sbox_index & 1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | if (round_iter==15) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (round_iter==15) [INFO] [stdout] 147 + if round_iter==15 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_shf` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | for index_shf in 0..shf_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_shf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sbox_input` is never read [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut sbox_input : u8 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_index_0` [INFO] [stdout] --> src/main.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | ... let bit_index_0 : usize = (ptr_index & 0x07).into(); // à noter que le 0x07 est utilisé pour calculer un modulo 8. Est supérieur à... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_index_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..NB_TESTS { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_shf` [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | for index_shf in 0..shf_value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_shf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sbox_input` is never read [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut sbox_input : u8 = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_index_0` [INFO] [stdout] --> src/main.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | ... let bit_index_0 : usize = (ptr_index & 0x07).into(); // à noter que le 0x07 est utilisé pour calculer un modulo 8. Est supérieur à... [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_index_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..NB_TESTS { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID` [INFO] [stdout] --> src/des_constants.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | / pub const ID : [u8; 48] = [0, 1, 2, 3, 4, 5, 6, 7, [INFO] [stdout] 97 | | 8, 9, 10, 11, 12, 13, 14, 15, [INFO] [stdout] 98 | | 16, 17, 18, 19, 20, 21, 22, 23, [INFO] [stdout] 99 | | 24, 25, 26, 27, 28, 29, 30, 31, [INFO] [stdout] 100 | | 32, 33, 34, 35, 36, 37, 38, 39, [INFO] [stdout] 101 | | 40, 41, 42, 43, 44, 45, 46, 47]; [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ID` [INFO] [stdout] --> src/des_constants.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | / pub const ID : [u8; 48] = [0, 1, 2, 3, 4, 5, 6, 7, [INFO] [stdout] 97 | | 8, 9, 10, 11, 12, 13, 14, 15, [INFO] [stdout] 98 | | 16, 17, 18, 19, 20, 21, 22, 23, [INFO] [stdout] 99 | | 24, 25, 26, 27, 28, 29, 30, 31, [INFO] [stdout] 100 | | 32, 33, 34, 35, 36, 37, 38, 39, [INFO] [stdout] 101 | | 40, 41, 42, 43, 44, 45, 46, 47]; [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `DES` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `des` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `DES` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `des` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | write!(f, "Base key: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "{} ", format!("{:#008b} ", self.key[byte_index])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | write!(f, "Base key: "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "{} ", format!("{:#008b} ", self.key[byte_index])); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c229faa651ae41eb1f30feea4f2295f0a5f8175346dfd6963d86abddd37c5ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c229faa651ae41eb1f30feea4f2295f0a5f8175346dfd6963d86abddd37c5ae", kill_on_drop: false }` [INFO] [stdout] 4c229faa651ae41eb1f30feea4f2295f0a5f8175346dfd6963d86abddd37c5ae