[INFO] cloning repository https://github.com/dummman/enigma [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dummman/enigma" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdummman%2Fenigma", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdummman%2Fenigma'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c6e757af498ed7f69387a46cc2f1383db21c726 [INFO] checking dummman/enigma against try#3bb2879ea9e58d65b875f9a98df44f4a43ce2597 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdummman%2Fenigma" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dummman/enigma on toolchain 3bb2879ea9e58d65b875f9a98df44f4a43ce2597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dummman/enigma [INFO] finished tweaking git repo https://github.com/dummman/enigma [INFO] tweaked toml for git repo https://github.com/dummman/enigma written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/dummman/enigma already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3d703002923d632a964977fd4f8b386b22078b321d15bbe31fdc732c6d729db [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c3d703002923d632a964977fd4f8b386b22078b321d15bbe31fdc732c6d729db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3d703002923d632a964977fd4f8b386b22078b321d15bbe31fdc732c6d729db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3d703002923d632a964977fd4f8b386b22078b321d15bbe31fdc732c6d729db", kill_on_drop: false }` [INFO] [stdout] c3d703002923d632a964977fd4f8b386b22078b321d15bbe31fdc732c6d729db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4fd169efae773b1b95360b937726028be03660be472edf447e27c1ac00e9057 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f4fd169efae773b1b95360b937726028be03660be472edf447e27c1ac00e9057", kill_on_drop: false }` [INFO] [stderr] Checking enigma v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: no rules expected the token `4` [INFO] [stdout] --> src/main.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | let rot_pos = vec![7u32 4 19]; [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `2` [INFO] [stdout] --> src/main.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | let ring_pos = vec![12u32 2 20]; [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | println!(enyo.encrypt(ciphertext)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 12 | println!("{}", enyo.encrypt(ciphertext)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `4` [INFO] [stdout] --> src/main.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | let rot_pos = vec![7u32 4 19]; [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `2` [INFO] [stdout] --> src/main.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | let ring_pos = vec![12u32 2 20]; [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | println!(enyo.encrypt(ciphertext)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 12 | println!("{}", enyo.encrypt(ciphertext)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/enigma/plugboard.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let re = Regex::new(r"[^a-zA-Z]").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/enigma/plugboard.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | let re = Regex::new(r"[^a-zA-Z]").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | forward_wiring: decode_wiring(encoding), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `inverse_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | backward_wiring: inverse_wiring(forward_wiring), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `forward_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | backward_wiring: inverse_wiring(forward_wiring), [INFO] [stdout] | ^^^^^^^^^^^^^^ a field by this name exists in `Self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | "I" => self::new(name, rotor_position, [16, 0], ring_setting, "EKMFLGDQVZNTOWYHXUSPAIBRCJ"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | "II" => self::new(name, rotor_position,[4, 0], ring_setting, "AJDKSIRUXBLHWTMCQGZNPYFVOE"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | "III" => self::new(name, rotor_position, [21, 0], ring_setting, "BDFHJLCPRTXVZNYEIWGAKMUSQO"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | "IV" => self::new(name, rotor_position,[9, 0], ring_setting, "ESOVPZJAYQUIRHXLNFTGKDCMWB"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | "V" => self::new(name, rotor_position, [25, 0], ring_setting, "VZBRGITYUPSDNHLXAWMJQOFECK"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | "VI" => self::new(name, rotor_position, [12, 25], ring_setting, "VZBRGITYUPSDNHLXAWMJQOFECK"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | "VII" => self::new(name, rotor_position, [12, 25], ring_setting, "NZJHGRCXMYSWBOUFAIVLPEKQDT"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | "VIII" => self::new(name, rotor_position, [12, 25], ring_setting, "FKQHTLXOCBJSPDZRAMEWNIUYGV"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | _ => self::new("Identity", rotor_position,[0, 0], ring_setting, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encipher` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | encipher(c, self.rotor_position, self.ring_setting, &self.forward_wiring) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encipher` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | encipher(c, self.rotor_position, self.ring_setting, &self.backward_wiring) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_wiring` in this scope [INFO] [stdout] --> src/enigma/reflector.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | Reflector{forward_wiring: decode_wiring(encoding),} [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | "B" => self::new("YRUHQSLDPXNGOKMIEBFZCWVJAT"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | "C" => self::new("FVPJIAOYEDRZXWGCTKUQSBNMHL"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | _ => self::new("ZYXWVUTSRQPONMLKJIHGFEDCBA"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | Plugboard{wiring: decode_Plugboard(connections),} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `wiring` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | wiring[c] [INFO] [stdout] | ^^^^^^ a field by this name exists in `Self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | Identity_Plugboard [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | let mapping = Identity_Plugboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | Identity_Plugboard [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `identityPlugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | identityPlugboard() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | left_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | mid_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | right_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Reflector` in this scope [INFO] [stdout] --> src/enigma/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | reflector: Reflector, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::reflector::Reflector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Plugboard` in this scope [INFO] [stdout] --> src/enigma/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | plugboard: Plugboard, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::plugboard::Plugboard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | left_rotor: Rotor.create(rotors[0], rotor_positions[0], ring_settings[0]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | mid_rotor: Rotor.create(rotors[1], rotor_positions[1], ring_settings[1]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | right_rotor: Rotor.create(rotors[2], rotor_positions[2], ring_settings[2]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Reflector` in this scope [INFO] [stdout] --> src/enigma/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | reflector: Reflector.create(reflector), [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `reflector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Plugboard` in this scope [INFO] [stdout] --> src/enigma/mod.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | plugboard: Plugboard.new(plugboard_connections), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EnigmaKey` in this scope [INFO] [stdout] --> src/enigma/mod.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 6 | struct Enigma { [INFO] [stdout] | ------------- similarly named struct `Enigma` defined here [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn new_from_key(key: EnigmaKey) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: a struct with a similar name exists: `Enigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | if self::mid_rotor.is_at_notch() { [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | self::mid_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | self::left_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | else if self::right_rotor.is_at_notch() { [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | self::mid_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | self::right_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `rotate` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | self::rotate(); [INFO] [stdout] | ^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::plugboard` [INFO] [stdout] --> src/enigma/mod.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | c = self::plugboard.forward(c); [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::plugboard::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let c1: u32 = self::right_rotor.forward(c); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let c2: u32 = self::right_rotor.forward(c1); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let c3: u32 = self::right_rotor.forward(c2); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::reflector` [INFO] [stdout] --> src/enigma/mod.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let c4: u32 = self::reflector.forward(c3); [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::reflector::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | let c5: u32 = self::left_rotor.backward(c4); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | let c6: u32 = self::left_rotor.backward(c5); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let c7: u32 = self::left_rotor.backward(c6); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::plugboard` [INFO] [stdout] --> src/enigma/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | self::plugboard.forward(c7) [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::plugboard::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Enigma` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | let enyo = Enigma::new(rotors, refl, rot_pos, ring_pos, plug); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::Enigma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/enigma/plugboard.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | let re = Regex::new(r"[^a-zA-Z]").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/enigma/plugboard.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | let re = Regex::new(r"[^a-zA-Z]").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `enigma` [INFO] [stdout] error[E0107]: missing generics for struct `HashSet` [INFO] [stdout] --> src/enigma/plugboard.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_unplugged_chars(plugboard: String) -> HashSet { [INFO] [stdout] | ^^^^^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with at least 1 generic parameter: `T` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_unplugged_chars(plugboard: String) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to 58 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] error[E0425]: cannot find function `decode_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | forward_wiring: decode_wiring(encoding), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0423, E0425, E0433. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `inverse_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | backward_wiring: inverse_wiring(forward_wiring), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `forward_wiring` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:19:45 [INFO] [stdout] | [INFO] [stdout] 19 | backward_wiring: inverse_wiring(forward_wiring), [INFO] [stdout] | ^^^^^^^^^^^^^^ a field by this name exists in `Self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | "I" => self::new(name, rotor_position, [16, 0], ring_setting, "EKMFLGDQVZNTOWYHXUSPAIBRCJ"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | "II" => self::new(name, rotor_position,[4, 0], ring_setting, "AJDKSIRUXBLHWTMCQGZNPYFVOE"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | "III" => self::new(name, rotor_position, [21, 0], ring_setting, "BDFHJLCPRTXVZNYEIWGAKMUSQO"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | "IV" => self::new(name, rotor_position,[9, 0], ring_setting, "ESOVPZJAYQUIRHXLNFTGKDCMWB"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | "V" => self::new(name, rotor_position, [25, 0], ring_setting, "VZBRGITYUPSDNHLXAWMJQOFECK"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | "VI" => self::new(name, rotor_position, [12, 25], ring_setting, "VZBRGITYUPSDNHLXAWMJQOFECK"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | "VII" => self::new(name, rotor_position, [12, 25], ring_setting, "NZJHGRCXMYSWBOUFAIVLPEKQDT"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | "VIII" => self::new(name, rotor_position, [12, 25], ring_setting, "FKQHTLXOCBJSPDZRAMEWNIUYGV"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/rotor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | _ => self::new("Identity", rotor_position,[0, 0], ring_setting, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encipher` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | encipher(c, self.rotor_position, self.ring_setting, &self.forward_wiring) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `encipher` in this scope [INFO] [stdout] --> src/enigma/rotor.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | encipher(c, self.rotor_position, self.ring_setting, &self.backward_wiring) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_wiring` in this scope [INFO] [stdout] --> src/enigma/reflector.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | Reflector{forward_wiring: decode_wiring(encoding),} [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | "B" => self::new("YRUHQSLDPXNGOKMIEBFZCWVJAT"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | "C" => self::new("FVPJIAOYEDRZXWGCTKUQSBNMHL"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `new` in module `self` [INFO] [stdout] --> src/enigma/reflector.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | _ => self::new("ZYXWVUTSRQPONMLKJIHGFEDCBA"), [INFO] [stdout] | ^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | Plugboard{wiring: decode_Plugboard(connections),} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `wiring` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | wiring[c] [INFO] [stdout] | ^^^^^^ a field by this name exists in `Self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | Identity_Plugboard [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | let mapping = Identity_Plugboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Identity_Plugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | Identity_Plugboard [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `identityPlugboard` in this scope [INFO] [stdout] --> src/enigma/plugboard.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | identityPlugboard() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | left_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | mid_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | right_rotor: Rotor, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::rotor::Rotor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Reflector` in this scope [INFO] [stdout] --> src/enigma/mod.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | reflector: Reflector, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::reflector::Reflector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Plugboard` in this scope [INFO] [stdout] --> src/enigma/mod.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | plugboard: Plugboard, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::plugboard::Plugboard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | left_rotor: Rotor.create(rotors[0], rotor_positions[0], ring_settings[0]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | mid_rotor: Rotor.create(rotors[1], rotor_positions[1], ring_settings[1]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Rotor` in this scope [INFO] [stdout] --> src/enigma/mod.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | right_rotor: Rotor.create(rotors[2], rotor_positions[2], ring_settings[2]), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Reflector` in this scope [INFO] [stdout] --> src/enigma/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | reflector: Reflector.create(reflector), [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `reflector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Plugboard` in this scope [INFO] [stdout] --> src/enigma/mod.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | plugboard: Plugboard.new(plugboard_connections), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EnigmaKey` in this scope [INFO] [stdout] --> src/enigma/mod.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 6 | struct Enigma { [INFO] [stdout] | ------------- similarly named struct `Enigma` defined here [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn new_from_key(key: EnigmaKey) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: a struct with a similar name exists: `Enigma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | if self::mid_rotor.is_at_notch() { [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | self::mid_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | self::left_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | else if self::right_rotor.is_at_notch() { [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mid_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | self::mid_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | self::right_rotor.turnover(); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `rotate` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | self::rotate(); [INFO] [stdout] | ^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::plugboard` [INFO] [stdout] --> src/enigma/mod.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | c = self::plugboard.forward(c); [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::plugboard::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let c1: u32 = self::right_rotor.forward(c); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | let c2: u32 = self::right_rotor.forward(c1); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `right_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let c3: u32 = self::right_rotor.forward(c2); [INFO] [stdout] | ^^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::reflector` [INFO] [stdout] --> src/enigma/mod.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | let c4: u32 = self::reflector.forward(c3); [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::reflector::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | let c5: u32 = self::left_rotor.backward(c4); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | let c6: u32 = self::left_rotor.backward(c5); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `left_rotor` in module `self` [INFO] [stdout] --> src/enigma/mod.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let c7: u32 = self::left_rotor.backward(c6); [INFO] [stdout] | ^^^^^^^^^^ not found in `self` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `self::plugboard` [INFO] [stdout] --> src/enigma/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | self::plugboard.forward(c7) [INFO] [stdout] | ^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `self::plugboard::forward` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Enigma` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | let enyo = Enigma::new(rotors, refl, rot_pos, ring_pos, plug); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::enigma::Enigma; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `HashSet` [INFO] [stdout] --> src/enigma/plugboard.rs:20:54 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_unplugged_chars(plugboard: String) -> HashSet { [INFO] [stdout] | ^^^^^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with at least 1 generic parameter: `T` [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 20 | pub fn get_unplugged_chars(plugboard: String) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 58 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0423, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f4fd169efae773b1b95360b937726028be03660be472edf447e27c1ac00e9057", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4fd169efae773b1b95360b937726028be03660be472edf447e27c1ac00e9057", kill_on_drop: false }` [INFO] [stdout] f4fd169efae773b1b95360b937726028be03660be472edf447e27c1ac00e9057