[INFO] cloning repository https://github.com/comp-phys-marc/quantum-rs-master [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/comp-phys-marc/quantum-rs-master" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcomp-phys-marc%2Fquantum-rs-master", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcomp-phys-marc%2Fquantum-rs-master'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 36feb29b567c14bf1bc47a7795ca90ab5f98c0bd [INFO] testing comp-phys-marc/quantum-rs-master against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcomp-phys-marc%2Fquantum-rs-master" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/comp-phys-marc/quantum-rs-master on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/comp-phys-marc/quantum-rs-master [INFO] finished tweaking git repo https://github.com/comp-phys-marc/quantum-rs-master [INFO] tweaked toml for git repo https://github.com/comp-phys-marc/quantum-rs-master written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/comp-phys-marc/quantum-rs-master already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17dc4fa349dc104aa42c0c8d53136c7914b10ef721f12b1481e0932b5276c932 [INFO] running `Command { std: "docker" "start" "-a" "17dc4fa349dc104aa42c0c8d53136c7914b10ef721f12b1481e0932b5276c932", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17dc4fa349dc104aa42c0c8d53136c7914b10ef721f12b1481e0932b5276c932", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17dc4fa349dc104aa42c0c8d53136c7914b10ef721f12b1481e0932b5276c932", kill_on_drop: false }` [INFO] [stdout] 17dc4fa349dc104aa42c0c8d53136c7914b10ef721f12b1481e0932b5276c932 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0b1468822b82fc32ae6c3a8f7ab943a489e0f33e57f4df6fbf307047a2fc495 [INFO] running `Command { std: "docker" "start" "-a" "d0b1468822b82fc32ae6c3a8f7ab943a489e0f33e57f4df6fbf307047a2fc495", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bit-vec v0.5.0 [INFO] [stderr] Compiling 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [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] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stdout] | [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:17 [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] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `coefficient` [INFO] [stdout] --> src/ket.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | coefficient: ComplexCoefficient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `val` [INFO] [stdout] --> src/ket.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | val: BitVec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `entanglements` [INFO] [stdout] --> src/ket.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | entanglements: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `outcome` [INFO] [stdout] --> src/ket.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | outcome:bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system` [INFO] [stdout] --> src/ket.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | system:char, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `qubit` [INFO] [stdout] --> src/ket.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | qubit:usize [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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 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: 97 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [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] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output` is assigned to, but never used [INFO] [stdout] --> src/main.rs:218:13 [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: 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: field is never read: `outcome` [INFO] [stdout] --> src/ket.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | outcome:bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system` [INFO] [stdout] --> src/ket.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | system:char, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `qubit` [INFO] [stdout] --> src/ket.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | qubit:usize [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.40s [INFO] running `Command { std: "docker" "inspect" "d0b1468822b82fc32ae6c3a8f7ab943a489e0f33e57f4df6fbf307047a2fc495", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0b1468822b82fc32ae6c3a8f7ab943a489e0f33e57f4df6fbf307047a2fc495", kill_on_drop: false }` [INFO] [stdout] d0b1468822b82fc32ae6c3a8f7ab943a489e0f33e57f4df6fbf307047a2fc495 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04165c7b21ad24d67143ec291037c9ce811fdf0d2d72dc50474592b0f233d04d [INFO] running `Command { std: "docker" "start" "-a" "04165c7b21ad24d67143ec291037c9ce811fdf0d2d72dc50474592b0f233d04d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [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] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stdout] | [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:17 [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] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/coefficient.rs:150:16 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(Copy, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `coefficient` [INFO] [stdout] --> src/ket.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | coefficient: ComplexCoefficient, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `val` [INFO] [stdout] --> src/ket.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | val: BitVec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `entanglements` [INFO] [stdout] --> src/ket.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | entanglements: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `outcome` [INFO] [stdout] --> src/ket.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | outcome:bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system` [INFO] [stdout] --> src/ket.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | system:char, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `qubit` [INFO] [stdout] --> src/ket.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | qubit:usize [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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 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] [stderr] Compiling qedlib v0.1.0 (/opt/rustwide/workdir) [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: 97 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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [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] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stdout] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stdout] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [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] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stdout] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stdout] | [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: variable `output` is assigned to, but never used [INFO] [stdout] --> src/main.rs:218:13 [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: 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:17 [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` [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: field is never read: `outcome` [INFO] [stdout] --> src/ket.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | outcome:bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system` [INFO] [stdout] --> src/ket.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | system:char, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `qubit` [INFO] [stdout] --> src/ket.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | qubit:usize [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 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: field is never read: `entanglements` [INFO] [stdout] --> src/ket.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | entanglements: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `outcome` [INFO] [stdout] --> src/ket.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | outcome:bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `system` [INFO] [stdout] --> src/ket.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | system:char, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `qubit` [INFO] [stdout] --> src/ket.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | qubit:usize [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/ket.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | #[derive(Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.90s [INFO] running `Command { std: "docker" "inspect" "04165c7b21ad24d67143ec291037c9ce811fdf0d2d72dc50474592b0f233d04d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04165c7b21ad24d67143ec291037c9ce811fdf0d2d72dc50474592b0f233d04d", kill_on_drop: false }` [INFO] [stdout] 04165c7b21ad24d67143ec291037c9ce811fdf0d2d72dc50474592b0f233d04d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a32f69d7c453124ad969c6418eb5e7f2e1700149cf2890d7720fcac697c8d8f2 [INFO] running `Command { std: "docker" "start" "-a" "a32f69d7c453124ad969c6418eb5e7f2e1700149cf2890d7720fcac697c8d8f2", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/coefficient.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stderr] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/coefficient.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stderr] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/coefficient.rs:165:9 [INFO] [stderr] | [INFO] [stderr] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 165 - (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stderr] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> src/coefficient.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stderr] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem::replace` [INFO] [stderr] --> src/ket.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::mem::replace; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `beta` [INFO] [stderr] --> src/state.rs:237:39 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `to_remove` is never read [INFO] [stderr] --> src/ensemble.rs:34:17 [INFO] [stderr] | [INFO] [stderr] 34 | let mut to_remove:Vec = vec![]; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/ensemble.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | for (name, subsystem) in &mut self.subsystems { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ket.rs:61:26 [INFO] [stderr] | [INFO] [stderr] 61 | Some(mut val) => { [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `magnitude` [INFO] [stderr] --> src/coefficient.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | magnitude: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/coefficient.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `imaginary` [INFO] [stderr] --> src/coefficient.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | imaginary: bool [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/coefficient.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_coefficient` [INFO] [stderr] --> src/coefficient.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn create_coefficient(magnitude:f64, imaginary:bool) -> Coefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals_coefficient` [INFO] [stderr] --> src/coefficient.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stderr] --> src/coefficient.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_coefficient` [INFO] [stderr] --> src/coefficient.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn add_to_coefficient(&self, other: Coefficient) -> Coefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_magnitude` [INFO] [stderr] --> src/coefficient.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 82 | pub fn get_magnitude(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_imaginary` [INFO] [stderr] --> src/coefficient.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn get_imaginary(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_magnitude` [INFO] [stderr] --> src/coefficient.rs:92:12 [INFO] [stderr] | [INFO] [stderr] 92 | pub fn set_magnitude(&mut self, magnitude:f64) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_imaginary` [INFO] [stderr] --> src/coefficient.rs:97:12 [INFO] [stderr] | [INFO] [stderr] 97 | pub fn set_imaginary(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `clear_imaginary` [INFO] [stderr] --> src/coefficient.rs:102:12 [INFO] [stderr] | [INFO] [stderr] 102 | pub fn clear_imaginary(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `negate_magnitude` [INFO] [stderr] --> src/coefficient.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn negate_magnitude(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_i` [INFO] [stderr] --> src/coefficient.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 112 | pub fn multiply_by_i(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_number` [INFO] [stderr] --> src/coefficient.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_probability` [INFO] [stderr] --> src/coefficient.rs:128:12 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn to_probability(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `complex_conjugate` [INFO] [stderr] --> src/coefficient.rs:133:12 [INFO] [stderr] | [INFO] [stderr] 133 | pub fn complex_conjugate(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print` [INFO] [stderr] --> src/coefficient.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 140 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `real_component` [INFO] [stderr] --> src/coefficient.rs:152:5 [INFO] [stderr] | [INFO] [stderr] 152 | real_component: Coefficient, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/coefficient.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `imaginary_component` [INFO] [stderr] --> src/coefficient.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | imaginary_component: Coefficient [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ComplexCoefficient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/coefficient.rs:150:16 [INFO] [stderr] | [INFO] [stderr] 150 | #[derive(Copy, Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:157:8 [INFO] [stderr] | [INFO] [stderr] 157 | pub fn create_complex_coefficient(real_component:Coefficient, imaginary_component:Coefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:164:12 [INFO] [stderr] | [INFO] [stderr] 164 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals_coefficient` [INFO] [stderr] --> src/coefficient.rs:169:12 [INFO] [stderr] | [INFO] [stderr] 169 | pub fn equals_coefficient(&self, other: Coefficient) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_coefficient` [INFO] [stderr] --> src/coefficient.rs:174:12 [INFO] [stderr] | [INFO] [stderr] 174 | pub fn multiply_by_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:180:12 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn multiply_by_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_coefficient` [INFO] [stderr] --> src/coefficient.rs:187:12 [INFO] [stderr] | [INFO] [stderr] 187 | pub fn add_to_coefficient(&self, other: Coefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_to_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:199:12 [INFO] [stderr] | [INFO] [stderr] 199 | pub fn add_to_complex_coefficient(&self, other: ComplexCoefficient) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_real_component` [INFO] [stderr] --> src/coefficient.rs:206:12 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn get_real_component(&self) -> Coefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_imaginary_component` [INFO] [stderr] --> src/coefficient.rs:211:12 [INFO] [stderr] | [INFO] [stderr] 211 | pub fn get_imaginary_component(&self) -> Coefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_real_component` [INFO] [stderr] --> src/coefficient.rs:216:12 [INFO] [stderr] | [INFO] [stderr] 216 | pub fn set_real_component(&mut self, real_component:Coefficient){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_imaginary_component` [INFO] [stderr] --> src/coefficient.rs:226:12 [INFO] [stderr] | [INFO] [stderr] 226 | pub fn set_imaginary_component(&mut self, imaginary_component:Coefficient){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `negate_magnitude` [INFO] [stderr] --> src/coefficient.rs:236:12 [INFO] [stderr] | [INFO] [stderr] 236 | pub fn negate_magnitude(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_i` [INFO] [stderr] --> src/coefficient.rs:242:12 [INFO] [stderr] | [INFO] [stderr] 242 | pub fn multiply_by_i(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `multiply_by_number` [INFO] [stderr] --> src/coefficient.rs:253:12 [INFO] [stderr] | [INFO] [stderr] 253 | pub fn multiply_by_number(&mut self, number:f64) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `to_probability` [INFO] [stderr] --> src/coefficient.rs:259:12 [INFO] [stderr] | [INFO] [stderr] 259 | pub fn to_probability(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `complex_conjugate` [INFO] [stderr] --> src/coefficient.rs:266:12 [INFO] [stderr] | [INFO] [stderr] 266 | pub fn complex_conjugate(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print` [INFO] [stderr] --> src/coefficient.rs:271:12 [INFO] [stderr] | [INFO] [stderr] 271 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `coefficient` [INFO] [stderr] --> src/ket.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | coefficient: ComplexCoefficient, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:10:10 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `val` [INFO] [stderr] --> src/ket.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | val: BitVec, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:10:10 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `entanglements` [INFO] [stderr] --> src/ket.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | entanglements: Vec [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Ket` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:10:10 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_ket` [INFO] [stderr] --> src/ket.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn create_ket(coeff:ComplexCoefficient, val:BitVec, entanglements:Vec) -> Ket { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals` [INFO] [stderr] --> src/ket.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_val` [INFO] [stderr] --> src/ket.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn get_val(&self) -> BitVec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_coefficient` [INFO] [stderr] --> src/ket.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn get_coefficient(&self) -> ComplexCoefficient { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_val` [INFO] [stderr] --> src/ket.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn set_val(&mut self, val:BitVec) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `set_coefficient` [INFO] [stderr] --> src/ket.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn set_coefficient(&mut self, coeff:ComplexCoefficient) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_probability` [INFO] [stderr] --> src/ket.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn get_probability(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `x` [INFO] [stderr] --> src/ket.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn x(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cx` [INFO] [stderr] --> src/ket.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `z` [INFO] [stderr] --> src/ket.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 86 | pub fn z(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `y` [INFO] [stderr] --> src/ket.rs:93:12 [INFO] [stderr] | [INFO] [stderr] 93 | pub fn y(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print` [INFO] [stderr] --> src/ket.rs:100:12 [INFO] [stderr] | [INFO] [stderr] 100 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_entangled` [INFO] [stderr] --> src/ket.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 107 | pub fn is_entangled(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `is_entangled_with` [INFO] [stderr] --> src/ket.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn is_entangled_with(&self, system:char, qubit:usize) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `entangle` [INFO] [stderr] --> src/ket.rs:125:12 [INFO] [stderr] | [INFO] [stderr] 125 | pub fn entangle(&mut self, outcome:bool, system:char, qubit:usize) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `should_collapse` [INFO] [stderr] --> src/ket.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn should_collapse(&mut self, outcome:bool, system:char, qubit:usize) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `copy_entanglement_to` [INFO] [stderr] --> src/ket.rs:151:12 [INFO] [stderr] | [INFO] [stderr] 151 | pub fn copy_entanglement_to(&self, mut other_ket:Ket) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `h` [INFO] [stderr] --> src/ket.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn h(&mut self, qubit:usize) -> [Ket; 2] { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `outcome` [INFO] [stderr] --> src/ket.rs:171:5 [INFO] [stderr] | [INFO] [stderr] 171 | outcome:bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:169:10 [INFO] [stderr] | [INFO] [stderr] 169 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `system` [INFO] [stderr] --> src/ket.rs:172:5 [INFO] [stderr] | [INFO] [stderr] 172 | system:char, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:169:10 [INFO] [stderr] | [INFO] [stderr] 169 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `qubit` [INFO] [stderr] --> src/ket.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 173 | qubit:usize [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Entanglement` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/ket.rs:169:10 [INFO] [stderr] | [INFO] [stderr] 169 | #[derive(Clone)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_entanglement` [INFO] [stderr] --> src/ket.rs:177:8 [INFO] [stderr] | [INFO] [stderr] 177 | pub fn create_entanglement(outcome:bool, system:char, qubit:usize) -> Entanglement { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_system` [INFO] [stderr] --> src/ket.rs:184:12 [INFO] [stderr] | [INFO] [stderr] 184 | pub fn get_system(&self) -> char { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_qubit` [INFO] [stderr] --> src/ket.rs:189:12 [INFO] [stderr] | [INFO] [stderr] 189 | pub fn get_qubit(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_outcome` [INFO] [stderr] --> src/ket.rs:194:12 [INFO] [stderr] | [INFO] [stderr] 194 | pub fn get_outcome(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_state` [INFO] [stderr] --> src/state.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn create_state(kets:Vec, num_qubits:usize, symbol:char) -> State { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_ket` [INFO] [stderr] --> src/state.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn add_ket(&mut self, ket:Ket) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove_ket` [INFO] [stderr] --> src/state.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn remove_ket(&mut self, ket:Ket) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_components` [INFO] [stderr] --> src/state.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn get_components(&self, qubit:usize) -> [ComplexCoefficient; 2] { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `x` [INFO] [stderr] --> src/state.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn x(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cx` [INFO] [stderr] --> src/state.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn cx(&mut self, source:usize, target:usize) { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `y` [INFO] [stderr] --> src/state.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn y(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `z` [INFO] [stderr] --> src/state.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn z(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `h` [INFO] [stderr] --> src/state.rs:103:12 [INFO] [stderr] | [INFO] [stderr] 103 | pub fn h(&mut self, qubit:usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `m` [INFO] [stderr] --> src/state.rs:173:12 [INFO] [stderr] | [INFO] [stderr] 173 | pub fn m(&mut self, qubit:usize) -> bool { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `normalize` [INFO] [stderr] --> src/state.rs:205:12 [INFO] [stderr] | [INFO] [stderr] 205 | pub fn normalize(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print` [INFO] [stderr] --> src/state.rs:250:12 [INFO] [stderr] | [INFO] [stderr] 250 | pub fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print_state_vectors` [INFO] [stderr] --> src/state.rs:259:12 [INFO] [stderr] | [INFO] [stderr] 259 | pub fn print_state_vectors(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Ensemble` [INFO] [stderr] --> src/ensemble.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Ensemble { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_ensemble` [INFO] [stderr] --> src/ensemble.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn create_ensemble(subsystems:BTreeMap) -> Ensemble { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add_subsystem` [INFO] [stderr] --> src/ensemble.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn add_subsystem(&mut self, state:State, name:char) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `m` [INFO] [stderr] --> src/ensemble.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn m(&mut self, target_system:char, target_qubit:usize) -> bool { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cx` [INFO] [stderr] --> src/ensemble.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn cx(&mut self, source_system:char, source_qubit:usize, target_system:char, target_qubit:usize) { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/ensemble.rs:50:13 [INFO] [stderr] | [INFO] [stderr] 50 | replace(subsystem, new_subsystem); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/ensemble.rs:107:13 [INFO] [stderr] | [INFO] [stderr] 107 | replace(&mut target, &new_target); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/ensemble.rs:108:13 [INFO] [stderr] | [INFO] [stderr] 108 | replace(&mut source, &new_source); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals_complex_coefficient` [INFO] [stderr] --> src/coefficient.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn equals_complex_coefficient(&self, other: ComplexCoefficient) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `qedlib` (lib) generated 97 warnings [INFO] [stderr] warning: `qedlib` (lib test) generated 77 warnings (76 duplicates) [INFO] [stderr] warning: unused import: `std::collections::BTreeMap` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::collections::BTreeMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem::replace` [INFO] [stderr] --> src/ket.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::mem::replace; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `output` is assigned to, but never used [INFO] [stderr] --> src/main.rs:218:13 [INFO] [stderr] | [INFO] [stderr] 218 | let mut output = ten_qubit_counterfeit_coin_finding(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: consider using `_output` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `output` is never read [INFO] [stderr] --> src/main.rs:224:5 [INFO] [stderr] | [INFO] [stderr] 224 | output = eleven_qubit_counterfeit_coin_finding(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `output` is never read [INFO] [stderr] --> src/main.rs:230:5 [INFO] [stderr] | [INFO] [stderr] 230 | output = twelve_qubit_counterfeit_coin_finding(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `beta` [INFO] [stderr] --> src/state.rs:237:39 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn _measure(&self, alpha:f64, beta:f64) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_beta` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `equals` [INFO] [stderr] --> src/ket.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn equals(&self, other:Ket) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `qedlib` (bin "qedlib" test) generated 52 warnings (45 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/qedlib-f39d848bdca693eb) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test tests::test_create_coefficient ... ok [INFO] [stdout] test tests::test_equals_coefficient ... ok [INFO] [stdout] test tests::test_create_ket ... ok [INFO] [stdout] test tests::test_create_state ... ok [INFO] [stdout] test tests::test_create_ensemble ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/qedlib-c0214d6aeabfc5ca) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests qedlib [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> /opt/rustwide/workdir/src/coefficient.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 24 - (self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0) [INFO] [stderr] 24 + self.magnitude == other.get_real_component().get_magnitude() && other.get_imaginary_component().get_magnitude() == 0.0 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> /opt/rustwide/workdir/src/coefficient.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 27 - (self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0) [INFO] [stderr] 27 + self.magnitude == other.get_imaginary_component().get_magnitude() && other.get_real_component().get_magnitude() == 0.0 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> /opt/rustwide/workdir/src/coefficient.rs:165:9 [INFO] [stderr] | [INFO] [stderr] 165 | ... (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 165 - (self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component())) [INFO] [stderr] 165 + self.real_component.equals_coefficient(other.get_real_component()) && self.imaginary_component.equals_coefficient(other.get_imaginary_component()) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around block return value [INFO] [stderr] --> /opt/rustwide/workdir/src/coefficient.rs:170:9 [INFO] [stderr] | [INFO] [stderr] 170 | (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 170 - (self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other)) [INFO] [stderr] 170 + self.real_component.equals_coefficient(other) || self.imaginary_component.equals_coefficient(other) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a32f69d7c453124ad969c6418eb5e7f2e1700149cf2890d7720fcac697c8d8f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a32f69d7c453124ad969c6418eb5e7f2e1700149cf2890d7720fcac697c8d8f2", kill_on_drop: false }` [INFO] [stdout] a32f69d7c453124ad969c6418eb5e7f2e1700149cf2890d7720fcac697c8d8f2