[INFO] cloning repository https://github.com/nathanljones/engima_machine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nathanljones/engima_machine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanljones%2Fengima_machine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanljones%2Fengima_machine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 432659a36fd386a70e559cfdcf7d760e2fc06a02 [INFO] checking nathanljones/engima_machine against try#9d63f825c0d409b0e1743a2c84b33f86965e5929 for pr-136968 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnathanljones%2Fengima_machine" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nathanljones/engima_machine on toolchain 9d63f825c0d409b0e1743a2c84b33f86965e5929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nathanljones/engima_machine [INFO] finished tweaking git repo https://github.com/nathanljones/engima_machine [INFO] tweaked toml for git repo https://github.com/nathanljones/engima_machine written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nathanljones/engima_machine 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" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 542e88cf7dd608bc7f18be8df68476e2b145e0d97dcc3665bc8d5ef61859dabd [INFO] running `Command { std: "docker" "start" "-a" "542e88cf7dd608bc7f18be8df68476e2b145e0d97dcc3665bc8d5ef61859dabd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "542e88cf7dd608bc7f18be8df68476e2b145e0d97dcc3665bc8d5ef61859dabd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "542e88cf7dd608bc7f18be8df68476e2b145e0d97dcc3665bc8d5ef61859dabd", kill_on_drop: false }` [INFO] [stdout] 542e88cf7dd608bc7f18be8df68476e2b145e0d97dcc3665bc8d5ef61859dabd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9d63f825c0d409b0e1743a2c84b33f86965e5929" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e76c571bca70a6d104a96567f970e2a2a91180cc9e8dacc0ec8e8378eef20e3 [INFO] running `Command { std: "docker" "start" "-a" "4e76c571bca70a6d104a96567f970e2a2a91180cc9e8dacc0ec8e8378eef20e3", kill_on_drop: false }` [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking engima_machine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `NO_LETTERS_IN_ALPHABET` is never used [INFO] [stdout] --> src/common.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const NO_LETTERS_IN_ALPHABET: u32 = 26; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_OFFSET` is never used [INFO] [stdout] --> src/common.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const ASCII_OFFSET: u32 = 65; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Enigma` is never constructed [INFO] [stdout] --> src/engima.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Enigma { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/engima.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Enigma { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn wire_enigma(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn rotate(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn encrypt(&mut self, character: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn encrypt_char(&mut self, character: char) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn convert_char_to_number(character: char) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn convert_number_to_char(letter_number: u32) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn encrypt_text(&mut self, text: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Plugboard` is never constructed [INFO] [stdout] --> src/plugboard.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Plugboard { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `forward`, `identity_plugboard`, `set_plugboard`, and `decode_plugboard` are never used [INFO] [stdout] --> src/plugboard.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Plugboard { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(connections: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn forward(&self, character: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn identity_plugboard() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn set_plugboard(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn decode_plugboard(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReflectorType` is never used [INFO] [stdout] --> src/reflector.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ReflectorType { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `wiring` is never used [INFO] [stdout] --> src/reflector.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl ReflectorType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 9 | fn wiring(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Reflector` is never constructed [INFO] [stdout] --> src/reflector.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Reflector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_wiring`, `decode_wiring`, and `forward` are never used [INFO] [stdout] --> src/reflector.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Reflector { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(reflector_type: ReflectorType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_wiring(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn decode_wiring(wiring: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn forward(&self, c: usize) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RotorName` is never used [INFO] [stdout] --> src/rotor.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum RotorName { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RotorName` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wiring` and `notch_position` are never used [INFO] [stdout] --> src/rotor.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl RotorName { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 15 | fn wiring(self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn notch_position(self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AtANotch` and `NotAtANotch` are never constructed [INFO] [stdout] --> src/rotor.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | pub enum NotchStatus { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 41 | AtANotch, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 42 | NotAtANotch, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotchStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rotor` is never constructed [INFO] [stdout] --> src/rotor.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Rotor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/rotor.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Rotor { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 55 | pub fn new(name: RotorName, rotor_position: u32, ring_setting: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn set_encoding(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn notch_status(&self) -> NotchStatus { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn turnover(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn position(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn decode_wiring(wiring: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn set_wiring(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn inverse_wiring(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn encipher(character: u32, pos: i32, ring: i32, mapping: &[u32]) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn forward(&self, character: u32) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn backward(&self, character: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Default` is never constructed [INFO] [stdout] --> src/reflector.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ReflectorType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Default, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Identity` is never constructed [INFO] [stdout] --> src/rotor.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum RotorName { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Identity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RotorName` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position` is never used [INFO] [stdout] --> src/rotor.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Rotor { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn position(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "4e76c571bca70a6d104a96567f970e2a2a91180cc9e8dacc0ec8e8378eef20e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e76c571bca70a6d104a96567f970e2a2a91180cc9e8dacc0ec8e8378eef20e3", kill_on_drop: false }` [INFO] [stdout] 4e76c571bca70a6d104a96567f970e2a2a91180cc9e8dacc0ec8e8378eef20e3