[INFO] cloning repository https://github.com/Mego/rust-quantum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mego/rust-quantum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMego%2Frust-quantum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMego%2Frust-quantum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f87981d11e7a668d205359d02b219ddb0d07e8b [INFO] checking Mego/rust-quantum against master#029c9e18dd1f4668e1d42bb187c1c263dfe20093 for pr-157562 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMego%2Frust-quantum" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Mego/rust-quantum [INFO] finished tweaking git repo https://github.com/Mego/rust-quantum [INFO] tweaked toml for git repo https://github.com/Mego/rust-quantum written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Mego/rust-quantum on toolchain 029c9e18dd1f4668e1d42bb187c1c263dfe20093 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Mego/rust-quantum already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy-derive v0.8.14 [INFO] [stderr] Downloaded rand_distr v0.5.0 [INFO] [stderr] Downloaded bounded-integer v0.5.8 [INFO] [stderr] Downloaded exhaust v0.2.1 [INFO] [stderr] Downloaded exhaust-macros v0.2.1 [INFO] [stderr] Downloaded bounded-integer-macro v0.5.8 [INFO] [stderr] Downloaded rand_core v0.9.0 [INFO] [stderr] Downloaded zerocopy v0.8.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0 [INFO] running `Command { std: "docker" "start" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling zerocopy v0.8.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Checking wide v0.7.32 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Checking simba v0.9.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.14 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Compiling exhaust-macros v0.2.1 [INFO] [stderr] Compiling bounded-integer-macro v0.5.8 [INFO] [stderr] Checking exhaust v0.2.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking nalgebra v0.33.2 [INFO] [stderr] Checking rand_core v0.9.0 [INFO] [stderr] Checking bounded-integer v0.5.8 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking rand_distr v0.5.0 [INFO] [stderr] Checking quantum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bounded_integer::BoundedU8` [INFO] [stdout] --> src/algebra.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bounded_integer::BoundedU8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SVector` [INFO] [stdout] --> src/algebra.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{DMatrix, DVector, RowDVector, SMatrix, SVector}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak` and `cell::RefCell` [INFO] [stdout] --> src/qubit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | rc::{Rc, Weak}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DVectorView`, `DVector`, `Dyn`, `SVectorViewMut`, `SVectorView`, and `SVector` [INFO] [stdout] --> src/qubit.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use nalgebra::{DVector, DVectorView, Dyn, SVector, SVectorView, SVectorViewMut}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Complex64` [INFO] [stdout] --> src/qubit.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | types::{Complex64, Operation}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `Ref` [INFO] [stdout] --> src/state.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, Ref, RefCell}, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ComplexField`, `DMatrix`, `SMatrix`, `SVectorView`, `SVector`, `convert`, `dvector`, and `try_convert` [INFO] [stdout] --> src/state.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ComplexField, DMatrix, DVector, Matrix2, SMatrix, SVector, SVectorView, Vector2, convert, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 13 | dmatrix, dvector, try_convert, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SVectorViewMut` and `SVectorView` [INFO] [stdout] --> src/types.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, SMatrix, SVectorView, SVectorViewMut}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bounded_integer::BoundedU8` [INFO] [stdout] --> src/algebra.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bounded_integer::BoundedU8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SVector` [INFO] [stdout] --> src/algebra.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{DMatrix, DVector, RowDVector, SMatrix, SVector}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Weak` and `cell::RefCell` [INFO] [stdout] --> src/qubit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | rc::{Rc, Weak}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DVectorView`, `DVector`, `Dyn`, `SVectorViewMut`, `SVectorView`, and `SVector` [INFO] [stdout] --> src/qubit.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use nalgebra::{DVector, DVectorView, Dyn, SVector, SVectorView, SVectorViewMut}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Complex64` [INFO] [stdout] --> src/qubit.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | types::{Complex64, Operation}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `Ref` [INFO] [stdout] --> src/state.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, Ref, RefCell}, [INFO] [stdout] | ^^^ [INFO] [stdout] 3 | collections::{HashMap, HashSet}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ComplexField`, `DMatrix`, `SMatrix`, `SVectorView`, `SVector`, `convert`, `dvector`, and `try_convert` [INFO] [stdout] --> src/state.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ComplexField, DMatrix, DVector, Matrix2, SMatrix, SVector, SVectorView, Vector2, convert, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 13 | dmatrix, dvector, try_convert, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SVectorViewMut` and `SVectorView` [INFO] [stdout] --> src/types.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, SMatrix, SVectorView, SVectorViewMut}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation_smatrix` is never used [INFO] [stdout] --> src/algebra.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) fn permutation_smatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation_dmatrix` is never used [INFO] [stdout] --> src/algebra.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn permutation_dmatrix(permutation: &[usize]) -> DMatrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_unitary` is never used [INFO] [stdout] --> src/algebra.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) fn is_unitary(m: &SMatrix) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ket` is never used [INFO] [stdout] --> src/algebra.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn ket(values: &[Bit]) -> DVector { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bra` is never used [INFO] [stdout] --> src/algebra.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn bra(values: &[Bit]) -> RowDVector { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Qubit` is never constructed [INFO] [stdout] --> src/qubit.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Qubit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `state`, and `apply_operation` are never used [INFO] [stdout] --> src/qubit.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Qubit { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new(idx: usize, state: Rc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn state(&self) -> Rc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn apply_operation(&self, op: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/state.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `qubit`, `apply_operation`, `measure_all_z`, and `measure_one_z` are never used [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl State { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn qubit(self: Rc) -> Qubit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn apply_operation(self: Rc, op: &T, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn measure_all_z(self: Rc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn measure_one_z(self: Rc, idx: usize) -> Measurement { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Complex64` is never used [INFO] [stdout] --> src/types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Complex64 = Complex; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bit` is never used [INFO] [stdout] --> src/types.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Bit = BoundedU8<0, 1>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Measurement` is never used [INFO] [stdout] --> src/types.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Measurement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Operation` is never used [INFO] [stdout] --> src/types.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatrixOperation` is never constructed [INFO] [stdout] --> src/types.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct MatrixOperation(SMatrix); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `identity` are never used [INFO] [stdout] --> src/types.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 35 | impl MatrixOperation { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 36 | pub(crate) fn new(m: SMatrix) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn identity() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation_smatrix` is never used [INFO] [stdout] --> src/algebra.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) fn permutation_smatrix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `permutation_dmatrix` is never used [INFO] [stdout] --> src/algebra.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn permutation_dmatrix(permutation: &[usize]) -> DMatrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_unitary` is never used [INFO] [stdout] --> src/algebra.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) fn is_unitary(m: &SMatrix) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ket` is never used [INFO] [stdout] --> src/algebra.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) fn ket(values: &[Bit]) -> DVector { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bra` is never used [INFO] [stdout] --> src/algebra.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn bra(values: &[Bit]) -> RowDVector { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Qubit` is never constructed [INFO] [stdout] --> src/qubit.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Qubit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `state`, and `apply_operation` are never used [INFO] [stdout] --> src/qubit.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl Qubit { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new(idx: usize, state: Rc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) fn state(&self) -> Rc { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn apply_operation(&self, op: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `State` is never constructed [INFO] [stdout] --> src/state.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `qubit`, `apply_operation`, `measure_all_z`, and `measure_one_z` are never used [INFO] [stdout] --> src/state.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl State { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 30 | pub fn new() -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn qubit(self: Rc) -> Qubit { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn apply_operation(self: Rc, op: &T, idx: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn measure_all_z(self: Rc) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn measure_one_z(self: Rc, idx: usize) -> Measurement { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Complex64` is never used [INFO] [stdout] --> src/types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Complex64 = Complex; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bit` is never used [INFO] [stdout] --> src/types.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub type Bit = BoundedU8<0, 1>; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Measurement` is never used [INFO] [stdout] --> src/types.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Measurement { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Operation` is never used [INFO] [stdout] --> src/types.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MatrixOperation` is never constructed [INFO] [stdout] --> src/types.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct MatrixOperation(SMatrix); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `identity` are never used [INFO] [stdout] --> src/types.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 35 | impl MatrixOperation { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 36 | pub(crate) fn new(m: SMatrix) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub(crate) fn identity() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.29s [INFO] running `Command { std: "docker" "inspect" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0", kill_on_drop: false }` [INFO] [stdout] b47cf5247ebcd219df119e0f94d1d02b5d1145d6dd7dafe68e0dbe607cdfc3c0