[INFO] cloning repository https://github.com/MackEdweise/quantum-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MackEdweise/quantum-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMackEdweise%2Fquantum-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMackEdweise%2Fquantum-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e532b1e2cdd0c49d02ec574754e46c14116dc7f [INFO] checking MackEdweise/quantum-rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMackEdweise%2Fquantum-rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MackEdweise/quantum-rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MackEdweise/quantum-rs [INFO] finished tweaking git repo https://github.com/MackEdweise/quantum-rs [INFO] tweaked toml for git repo https://github.com/MackEdweise/quantum-rs written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/MackEdweise/quantum-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1104a7e490ba59405136598b85ebd63912895df0e9a21268954133e6a99ddde0 [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" "1104a7e490ba59405136598b85ebd63912895df0e9a21268954133e6a99ddde0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1104a7e490ba59405136598b85ebd63912895df0e9a21268954133e6a99ddde0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1104a7e490ba59405136598b85ebd63912895df0e9a21268954133e6a99ddde0", kill_on_drop: false }` [INFO] [stdout] 1104a7e490ba59405136598b85ebd63912895df0e9a21268954133e6a99ddde0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5d54b0ac8a3d2729230939e5969962703c0d30b3d0d8f9d0a7365e3d352e31b [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" "e5d54b0ac8a3d2729230939e5969962703c0d30b3d0d8f9d0a7365e3d352e31b", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling rand_pcg v0.1.1 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.3 [INFO] [stderr] Checking rand_os v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking qedlib v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/ket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/ket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta` [INFO] [stdout] --> src/state.rs:237:39 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_remove` is never read [INFO] [stdout] --> src/ensemble.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut to_remove:Vec = vec![]; [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: `name` [INFO] [stdout] --> src/ensemble.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | for (name, subsystem) in &mut self.subsystems { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ket.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 61 | Some(mut val) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `magnitude` [INFO] [stdout] --> src/coefficient.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | magnitude: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `imaginary` [INFO] [stdout] --> src/coefficient.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | imaginary: bool [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_coefficient` [INFO] [stdout] --> src/coefficient.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn create_coefficient(magnitude:f64, imaginary:bool) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_coefficient` [INFO] [stdout] --> src/coefficient.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_to_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_magnitude` [INFO] [stdout] --> src/coefficient.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn get_magnitude(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_imaginary` [INFO] [stdout] --> src/coefficient.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn get_imaginary(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_magnitude` [INFO] [stdout] --> src/coefficient.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn set_magnitude(&mut self, magnitude:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary` [INFO] [stdout] --> src/coefficient.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_imaginary` [INFO] [stdout] --> src/coefficient.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn clear_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate_magnitude` [INFO] [stdout] --> src/coefficient.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn negate_magnitude(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_number` [INFO] [stdout] --> src/coefficient.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/coefficient.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `real_component` [INFO] [stdout] --> src/coefficient.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | real_component: Coefficient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `imaginary_component` [INFO] [stdout] --> src/coefficient.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | imaginary_component: Coefficient [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn create_complex_coefficient(real_component:Coefficient, imaginary_component:Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_coefficient` [INFO] [stdout] --> src/coefficient.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn add_to_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_real_component` [INFO] [stdout] --> src/coefficient.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn get_real_component(&self) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_imaginary_component` [INFO] [stdout] --> src/coefficient.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn get_imaginary_component(&self) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_real_component` [INFO] [stdout] --> src/coefficient.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn set_real_component(&mut self, real_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary_component` [INFO] [stdout] --> src/coefficient.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn set_imaginary_component(&mut self, imaginary_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate_magnitude` [INFO] [stdout] --> src/coefficient.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn negate_magnitude(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_number` [INFO] [stdout] --> src/coefficient.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/coefficient.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_ket` [INFO] [stdout] --> src/ket.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn create_ket(coeff:ComplexCoefficient, val:BitVec, entanglements:Vec) -> Ket { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/ket.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_val` [INFO] [stdout] --> src/ket.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_val(&self) -> BitVec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_coefficient` [INFO] [stdout] --> src/ket.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_coefficient(&self) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_val` [INFO] [stdout] --> src/ket.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_val(&mut self, val:BitVec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_coefficient` [INFO] [stdout] --> src/ket.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn set_coefficient(&mut self, coeff:ComplexCoefficient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_probability` [INFO] [stdout] --> src/ket.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/ket.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn x(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/ket.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/ket.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/ket.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/ket.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled` [INFO] [stdout] --> src/ket.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn is_entangled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled_with` [INFO] [stdout] --> src/ket.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_entangled_with(&self, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entangle` [INFO] [stdout] --> src/ket.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entangle(&mut self, outcome:bool, system:char, qubit:usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `should_collapse` [INFO] [stdout] --> src/ket.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn should_collapse(&mut self, outcome:bool, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy_entanglement_to` [INFO] [stdout] --> src/ket.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn copy_entanglement_to(&self, mut other_ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `h` [INFO] [stdout] --> src/ket.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn h(&mut self, qubit:usize) -> [Ket; 2] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_entanglement` [INFO] [stdout] --> src/ket.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_entanglement(outcome:bool, system:char, qubit:usize) -> Entanglement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_system` [INFO] [stdout] --> src/ket.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn get_system(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_qubit` [INFO] [stdout] --> src/ket.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn get_qubit(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_outcome` [INFO] [stdout] --> src/ket.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn get_outcome(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_state` [INFO] [stdout] --> src/state.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn create_state(kets:Vec, num_qubits:usize, symbol:char) -> State { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_ket` [INFO] [stdout] --> src/state.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_ket` [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn remove_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_components` [INFO] [stdout] --> src/state.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_components(&self, qubit:usize) -> [ComplexCoefficient; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/state.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn x(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/state.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/state.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/state.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `h` [INFO] [stdout] --> src/state.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn h(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `m` [INFO] [stdout] --> src/state.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn m(&mut self, qubit:usize) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/state.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/state.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_state_vectors` [INFO] [stdout] --> src/state.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn print_state_vectors(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Ensemble` [INFO] [stdout] --> src/ensemble.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ensemble { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_ensemble` [INFO] [stdout] --> src/ensemble.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn create_ensemble(subsystems:BTreeMap) -> Ensemble { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_subsystem` [INFO] [stdout] --> src/ensemble.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add_subsystem(&mut self, state:State, name:char) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `m` [INFO] [stdout] --> src/ensemble.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn m(&mut self, target_system:char, target_qubit:usize) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/ensemble.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn cx(&mut self, source_system:char, source_qubit:usize, target_system:char, target_qubit:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta` [INFO] [stdout] --> src/state.rs:237:39 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_remove` is never read [INFO] [stdout] --> src/ensemble.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut to_remove:Vec = vec![]; [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: `name` [INFO] [stdout] --> src/ensemble.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | for (name, subsystem) in &mut self.subsystems { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ket.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 61 | Some(mut val) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn add_to_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_magnitude` [INFO] [stdout] --> src/coefficient.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn set_magnitude(&mut self, magnitude:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary` [INFO] [stdout] --> src/coefficient.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_imaginary` [INFO] [stdout] --> src/coefficient.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn clear_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate_magnitude` [INFO] [stdout] --> src/coefficient.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn negate_magnitude(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_number` [INFO] [stdout] --> src/coefficient.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/coefficient.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_coefficient` [INFO] [stdout] --> src/coefficient.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn add_to_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_real_component` [INFO] [stdout] --> src/coefficient.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn set_real_component(&mut self, real_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary_component` [INFO] [stdout] --> src/coefficient.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn set_imaginary_component(&mut self, imaginary_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `negate_magnitude` [INFO] [stdout] --> src/coefficient.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn negate_magnitude(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_number` [INFO] [stdout] --> src/coefficient.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/coefficient.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 271 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/ket.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_val` [INFO] [stdout] --> src/ket.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_val(&mut self, val:BitVec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_coefficient` [INFO] [stdout] --> src/ket.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn set_coefficient(&mut self, coeff:ComplexCoefficient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_probability` [INFO] [stdout] --> src/ket.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/ket.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn x(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/ket.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/ket.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/ket.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/ket.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled` [INFO] [stdout] --> src/ket.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn is_entangled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled_with` [INFO] [stdout] --> src/ket.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_entangled_with(&self, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entangle` [INFO] [stdout] --> src/ket.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entangle(&mut self, outcome:bool, system:char, qubit:usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `should_collapse` [INFO] [stdout] --> src/ket.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn should_collapse(&mut self, outcome:bool, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy_entanglement_to` [INFO] [stdout] --> src/ket.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn copy_entanglement_to(&self, mut other_ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `h` [INFO] [stdout] --> src/ket.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn h(&mut self, qubit:usize) -> [Ket; 2] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_entanglement` [INFO] [stdout] --> src/ket.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_entanglement(outcome:bool, system:char, qubit:usize) -> Entanglement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_system` [INFO] [stdout] --> src/ket.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn get_system(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_qubit` [INFO] [stdout] --> src/ket.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn get_qubit(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_outcome` [INFO] [stdout] --> src/ket.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn get_outcome(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_ket` [INFO] [stdout] --> src/state.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_ket` [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn remove_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_components` [INFO] [stdout] --> src/state.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_components(&self, qubit:usize) -> [ComplexCoefficient; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/state.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn x(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/state.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/state.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/state.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `h` [INFO] [stdout] --> src/state.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn h(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `m` [INFO] [stdout] --> src/state.rs:173:12 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn m(&mut self, qubit:usize) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/state.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn normalize(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/state.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_state_vectors` [INFO] [stdout] --> src/state.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn print_state_vectors(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_subsystem` [INFO] [stdout] --> src/ensemble.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn add_subsystem(&mut self, state:State, name:char) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `m` [INFO] [stdout] --> src/ensemble.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn m(&mut self, target_system:char, target_qubit:usize) -> bool { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cx` [INFO] [stdout] --> src/ensemble.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn cx(&mut self, source_system:char, source_qubit:usize, target_system:char, target_qubit:usize) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | replace(subsystem, new_subsystem); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | replace(&mut target, &new_target); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | replace(&mut source, &new_source); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 91 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | replace(subsystem, new_subsystem); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | replace(&mut target, &new_target); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/ensemble.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | replace(&mut source, &new_source); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/ket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::BTreeMap` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::BTreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::replace` [INFO] [stdout] --> src/ket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem::replace; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/coefficient.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output` is assigned to, but never used [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let mut output = ten_qubit_counterfeit_coin_finding(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_output` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> src/main.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 224 | output = eleven_qubit_counterfeit_coin_finding(); [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: value assigned to `output` is never read [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | output = twelve_qubit_counterfeit_coin_finding(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta` [INFO] [stdout] --> src/state.rs:237:39 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ket.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 61 | Some(mut val) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output` is assigned to, but never used [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let mut output = ten_qubit_counterfeit_coin_finding(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_output` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> src/main.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 224 | output = eleven_qubit_counterfeit_coin_finding(); [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: value assigned to `output` is never read [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | output = twelve_qubit_counterfeit_coin_finding(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beta` [INFO] [stdout] --> src/state.rs:237:39 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/ket.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_val` [INFO] [stdout] --> src/ket.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_val(&mut self, val:BitVec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_coefficient` [INFO] [stdout] --> src/ket.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn set_coefficient(&mut self, coeff:ComplexCoefficient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/ket.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/ket.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled` [INFO] [stdout] --> src/ket.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn is_entangled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled_with` [INFO] [stdout] --> src/ket.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_entangled_with(&self, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entangle` [INFO] [stdout] --> src/ket.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entangle(&mut self, outcome:bool, system:char, qubit:usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `should_collapse` [INFO] [stdout] --> src/ket.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn should_collapse(&mut self, outcome:bool, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy_entanglement_to` [INFO] [stdout] --> src/ket.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn copy_entanglement_to(&self, mut other_ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_entanglement` [INFO] [stdout] --> src/ket.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_entanglement(outcome:bool, system:char, qubit:usize) -> Entanglement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_system` [INFO] [stdout] --> src/ket.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn get_system(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_qubit` [INFO] [stdout] --> src/ket.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn get_qubit(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_outcome` [INFO] [stdout] --> src/ket.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn get_outcome(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_ket` [INFO] [stdout] --> src/state.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_ket` [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn remove_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_components` [INFO] [stdout] --> src/state.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_components(&self, qubit:usize) -> [ComplexCoefficient; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/state.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/state.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/state.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_state_vectors` [INFO] [stdout] --> src/state.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn print_state_vectors(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary` [INFO] [stdout] --> src/coefficient.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_imaginary` [INFO] [stdout] --> src/coefficient.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn clear_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_coefficient` [INFO] [stdout] --> src/coefficient.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn add_to_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_real_component` [INFO] [stdout] --> src/coefficient.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn set_real_component(&mut self, real_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary_component` [INFO] [stdout] --> src/coefficient.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn set_imaginary_component(&mut self, imaginary_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ket.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 61 | Some(mut val) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals` [INFO] [stdout] --> src/ket.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_val` [INFO] [stdout] --> src/ket.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_val(&mut self, val:BitVec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_coefficient` [INFO] [stdout] --> src/ket.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn set_coefficient(&mut self, coeff:ComplexCoefficient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/ket.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/ket.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled` [INFO] [stdout] --> src/ket.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn is_entangled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_entangled_with` [INFO] [stdout] --> src/ket.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn is_entangled_with(&self, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `entangle` [INFO] [stdout] --> src/ket.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entangle(&mut self, outcome:bool, system:char, qubit:usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `should_collapse` [INFO] [stdout] --> src/ket.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn should_collapse(&mut self, outcome:bool, system:char, qubit:usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `copy_entanglement_to` [INFO] [stdout] --> src/ket.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn copy_entanglement_to(&self, mut other_ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_entanglement` [INFO] [stdout] --> src/ket.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn create_entanglement(outcome:bool, system:char, qubit:usize) -> Entanglement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_system` [INFO] [stdout] --> src/ket.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn get_system(&self) -> char { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_qubit` [INFO] [stdout] --> src/ket.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn get_qubit(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_outcome` [INFO] [stdout] --> src/ket.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub fn get_outcome(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_ket` [INFO] [stdout] --> src/state.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn add_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_ket` [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn remove_ket(&mut self, ket:Ket) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_components` [INFO] [stdout] --> src/state.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_components(&self, qubit:usize) -> [ComplexCoefficient; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `y` [INFO] [stdout] --> src/state.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn y(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `z` [INFO] [stdout] --> src/state.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn z(&mut self, qubit:usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/state.rs:250:12 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_state_vectors` [INFO] [stdout] --> src/state.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn print_state_vectors(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary` [INFO] [stdout] --> src/coefficient.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn set_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_imaginary` [INFO] [stdout] --> src/coefficient.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn clear_imaginary(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_probability` [INFO] [stdout] --> src/coefficient.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn to_probability(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `equals_coefficient` [INFO] [stdout] --> src/coefficient.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stdout] --> src/coefficient.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stdout] --> src/coefficient.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_to_coefficient` [INFO] [stdout] --> src/coefficient.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn add_to_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_real_component` [INFO] [stdout] --> src/coefficient.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn set_real_component(&mut self, real_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_imaginary_component` [INFO] [stdout] --> src/coefficient.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub fn set_imaginary_component(&mut self, imaginary_component:Coefficient){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `multiply_by_i` [INFO] [stdout] --> src/coefficient.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn multiply_by_i(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `complex_conjugate` [INFO] [stdout] --> src/coefficient.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn complex_conjugate(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.84s [INFO] running `Command { std: "docker" "inspect" "e5d54b0ac8a3d2729230939e5969962703c0d30b3d0d8f9d0a7365e3d352e31b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5d54b0ac8a3d2729230939e5969962703c0d30b3d0d8f9d0a7365e3d352e31b", kill_on_drop: false }` [INFO] [stdout] e5d54b0ac8a3d2729230939e5969962703c0d30b3d0d8f9d0a7365e3d352e31b