[INFO] cloning repository https://github.com/Leyknn/AES-GCM [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Leyknn/AES-GCM" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeyknn%2FAES-GCM", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeyknn%2FAES-GCM'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdd75b126f7d28cf05d096efe06b1750e6b671da [INFO] checking Leyknn/AES-GCM against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeyknn%2FAES-GCM" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Leyknn/AES-GCM [INFO] finished tweaking git repo https://github.com/Leyknn/AES-GCM [INFO] tweaked toml for git repo https://github.com/Leyknn/AES-GCM written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Leyknn/AES-GCM on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Leyknn/AES-GCM 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f39fc8fe4799b935879021a58ffdfdf4592bb0ff34f28348dc49d4fe5fbfb099 [INFO] running `Command { std: "docker" "start" "-a" "f39fc8fe4799b935879021a58ffdfdf4592bb0ff34f28348dc49d4fe5fbfb099", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f39fc8fe4799b935879021a58ffdfdf4592bb0ff34f28348dc49d4fe5fbfb099", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f39fc8fe4799b935879021a58ffdfdf4592bb0ff34f28348dc49d4fe5fbfb099", kill_on_drop: false }` [INFO] [stdout] f39fc8fe4799b935879021a58ffdfdf4592bb0ff34f28348dc49d4fe5fbfb099 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1b49e4fdd0884261c3d816f2f66ba1312430c3750592661e6c5f4376fc9bd24 [INFO] running `Command { std: "docker" "start" "-a" "e1b49e4fdd0884261c3d816f2f66ba1312430c3750592661e6c5f4376fc9bd24", kill_on_drop: false }` [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Checking array-init v2.1.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking volatile-register v0.2.2 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking AES-GCM v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait `GF2_8_Operations` should have an upper camel case name [INFO] [stdout] --> src/main.rs:139:7 [INFO] [stdout] | [INFO] [stdout] 139 | trait GF2_8_Operations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Gf2_8Operations` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GF2_8_Operations` should have an upper camel case name [INFO] [stdout] --> src/main.rs:139:7 [INFO] [stdout] | [INFO] [stdout] 139 | trait GF2_8_Operations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Gf2_8Operations` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:419:19 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_sub_key` [INFO] [stdout] --> src/main.rs:419:34 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_sub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `round` [INFO] [stdout] --> src/main.rs:419:65 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_round` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_shares` [INFO] [stdout] --> src/main.rs:419:79 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_shares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_sub_key` [INFO] [stdout] --> src/main.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_sub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `round` [INFO] [stdout] --> src/main.rs:423:65 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_round` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_shares` [INFO] [stdout] --> src/main.rs:423:79 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_shares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBBYTESB` is never used [INFO] [stdout] --> src/main.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const SUBBYTESB: u8 = 0x63; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RCON` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const RCON: [u8; 10] = [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AesType` is never used [INFO] [stdout] --> src/main.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum AesType { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `round_nb` is never used [INFO] [stdout] --> src/main.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn round_nb(aes_type: AesType) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keylen` is never used [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn keylen(aes_type: AesType) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/main.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_state`, `get_state_mut`, `equals`, and `display` are never used [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 37 | pub fn get_state(&self) -> &[Vec; 16] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_state_mut(&mut self) -> &mut [Vec; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn equals(&self, other:Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn display(&self, message: String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IoState` is never constructed [INFO] [stdout] --> src/main.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct IoState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `equals` is never used [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl IoState { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 70 | fn equals(&self, other:Self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AesKey` is never used [INFO] [stdout] --> src/main.rs:81:6 [INFO] [stdout] | [INFO] [stdout] 81 | enum AesKey{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AesSubKey` is never used [INFO] [stdout] --> src/main.rs:87:6 [INFO] [stdout] | [INFO] [stdout] 87 | enum AesSubKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Error` is never used [INFO] [stdout] --> src/main.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | enum Error { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CustomOperations` is never used [INFO] [stdout] --> src/main.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | trait CustomOperations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GF2_8_Operations` is never used [INFO] [stdout] --> src/main.rs:139:7 [INFO] [stdout] | [INFO] [stdout] 139 | trait GF2_8_Operations { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `masking` is never used [INFO] [stdout] --> src/main.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn masking(input: &[u8; N], nb_shares: usize) -> Result<[Vec; N], Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `output_from_state` is never used [INFO] [stdout] --> src/main.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn output_from_state(state: State) -> IoState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_round_key` is never used [INFO] [stdout] --> src/main.rs:296:4 [INFO] [stdout] | [INFO] [stdout] 296 | fn add_round_key(state: State, subkey: &AesSubKey) -> State { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sub_bytes` is never used [INFO] [stdout] --> src/main.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | fn sub_bytes(state: State) -> State { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `s_box` is never used [INFO] [stdout] --> src/main.rs:328:4 [INFO] [stdout] | [INFO] [stdout] 328 | fn s_box(shares: &Vec) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exponentiation_254` is never used [INFO] [stdout] --> src/main.rs:340:4 [INFO] [stdout] | [INFO] [stdout] 340 | fn exponentiation_254(shares:& Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `af` is never used [INFO] [stdout] --> src/main.rs:352:4 [INFO] [stdout] | [INFO] [stdout] 352 | fn af(share: u8) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_masks` is never used [INFO] [stdout] --> src/main.rs:364:4 [INFO] [stdout] | [INFO] [stdout] 364 | fn refresh_masks(shares: & mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_key` is never used [INFO] [stdout] --> src/main.rs:372:4 [INFO] [stdout] | [INFO] [stdout] 372 | fn expand_key(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, aes_type: AesType, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_key_128` is never used [INFO] [stdout] --> src/main.rs:387:4 [INFO] [stdout] | [INFO] [stdout] 387 | fn expand_key_128(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_key_192` is never used [INFO] [stdout] --> src/main.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand_key_256` is never used [INFO] [stdout] --> src/main.rs:423:4 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shift_rows` is never used [INFO] [stdout] --> src/main.rs:427:4 [INFO] [stdout] | [INFO] [stdout] 427 | fn shift_rows(state: State) -> State { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_columns` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn mix_columns(state: State) -> State { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cipher` is never used [INFO] [stdout] --> src/main.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 451 | fn cipher(input: IoState, aes_type: AesType, key: AesKey, nb_shares: usize) -> Result{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:456:19 [INFO] [stdout] | [INFO] [stdout] 456 | state.display("State 0".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:467:23 [INFO] [stdout] | [INFO] [stdout] 467 | state.display("Subbytes".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:470:23 [INFO] [stdout] | [INFO] [stdout] 470 | state.display("ShiftRows".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:473:23 [INFO] [stdout] | [INFO] [stdout] 473 | state.display("MixColumns".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:476:23 [INFO] [stdout] | [INFO] [stdout] 476 | state.display("AddRoundKey".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `AES-GCM` (bin "AES-GCM") due to 5 previous errors; 38 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:419:19 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_sub_key` [INFO] [stdout] --> src/main.rs:419:34 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_sub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `round` [INFO] [stdout] --> src/main.rs:419:65 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_round` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_shares` [INFO] [stdout] --> src/main.rs:419:79 [INFO] [stdout] | [INFO] [stdout] 419 | fn expand_key_192(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_shares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/main.rs:423:19 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_sub_key` [INFO] [stdout] --> src/main.rs:423:34 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_sub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `round` [INFO] [stdout] --> src/main.rs:423:65 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_round` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nb_shares` [INFO] [stdout] --> src/main.rs:423:79 [INFO] [stdout] | [INFO] [stdout] 423 | fn expand_key_256(key: & AesKey, previous_sub_key: & AesSubKey, round: usize, nb_shares: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nb_shares` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Aes192` and `Aes256` are never constructed [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | enum AesType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 10 | Aes128, [INFO] [stdout] 11 | Aes192, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Aes256, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AesType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `keylen` is never used [INFO] [stdout] --> src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn keylen(aes_type: AesType) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_state_mut` is never used [INFO] [stdout] --> src/main.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_state_mut(&mut self) -> &mut [Vec; 16] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Aes192Key` and `Aes256Key` are never constructed [INFO] [stdout] --> src/main.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 81 | enum AesKey{ [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 82 | Aes128Key([u8; 16]), [INFO] [stdout] 83 | Aes192Key([u8; 24]), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 84 | Aes256Key([u8; 32]), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AesKey` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Aes192SubKey` and `Aes256SubKey` are never constructed [INFO] [stdout] --> src/main.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 87 | enum AesSubKey { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 88 | Aes128SubKey([Vec; 16]), [INFO] [stdout] 89 | Aes192SubKey([Vec; 24]), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 90 | Aes256SubKey([Vec; 32]), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Test` is never constructed [INFO] [stdout] --> src/main.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 95 | Test, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:456:19 [INFO] [stdout] | [INFO] [stdout] 456 | state.display("State 0".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:467:23 [INFO] [stdout] | [INFO] [stdout] 467 | state.display("Subbytes".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:470:23 [INFO] [stdout] | [INFO] [stdout] 470 | state.display("ShiftRows".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:473:23 [INFO] [stdout] | [INFO] [stdout] 473 | state.display("MixColumns".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:476:23 [INFO] [stdout] | [INFO] [stdout] 476 | state.display("AddRoundKey".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `AES-GCM` (bin "AES-GCM" test) due to 5 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e1b49e4fdd0884261c3d816f2f66ba1312430c3750592661e6c5f4376fc9bd24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1b49e4fdd0884261c3d816f2f66ba1312430c3750592661e6c5f4376fc9bd24", kill_on_drop: false }` [INFO] [stdout] e1b49e4fdd0884261c3d816f2f66ba1312430c3750592661e6c5f4376fc9bd24