[INFO] cloning repository https://github.com/kakaname/quantum_sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kakaname/quantum_sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakaname%2Fquantum_sim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakaname%2Fquantum_sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a84a461f25cccc459a4d7369614947a65580ba3 [INFO] checking kakaname/quantum_sim against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakaname%2Fquantum_sim" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kakaname/quantum_sim on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kakaname/quantum_sim [INFO] finished tweaking git repo https://github.com/kakaname/quantum_sim [INFO] tweaked toml for git repo https://github.com/kakaname/quantum_sim written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kakaname/quantum_sim 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-integer v0.1.46 [INFO] [stderr] Downloaded num-complex v0.4.5 [INFO] [stderr] Downloaded simba v0.8.1 [INFO] [stderr] Downloaded num-iter v0.1.44 [INFO] [stderr] Downloaded bytemuck v1.15.0 [INFO] [stderr] Downloaded num v0.4.1 [INFO] [stderr] Downloaded matrixmultiply v0.3.8 [INFO] [stderr] Downloaded safe_arch v0.7.1 [INFO] [stderr] Downloaded nalgebra v0.32.4 [INFO] [stderr] Downloaded wide v0.7.15 [INFO] [stderr] Downloaded nalgebra-macros v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a6cdb8e4344cbf18d0f3d4108202d3ea436b9227c6775e6fa85114763f42511 [INFO] running `Command { std: "docker" "start" "-a" "9a6cdb8e4344cbf18d0f3d4108202d3ea436b9227c6775e6fa85114763f42511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a6cdb8e4344cbf18d0f3d4108202d3ea436b9227c6775e6fa85114763f42511", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a6cdb8e4344cbf18d0f3d4108202d3ea436b9227c6775e6fa85114763f42511", kill_on_drop: false }` [INFO] [stdout] 9a6cdb8e4344cbf18d0f3d4108202d3ea436b9227c6775e6fa85114763f42511 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9b14f07c2e97a0b22228aa9bb5005030be979650b3a0ad8b77e02ed959ea7dc [INFO] running `Command { std: "docker" "start" "-a" "a9b14f07c2e97a0b22228aa9bb5005030be979650b3a0ad8b77e02ed959ea7dc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking nalgebra v0.32.4 [INFO] [stderr] Checking quantum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `qubit::Qubit` [INFO] [stdout] --> src/quantum_gate.rs:9:70 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{matrix::SquareMatrix, quantum_register::QuantumRegister, qubit::Qubit}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::bigint::ParseBigIntError` [INFO] [stdout] --> src/matrix.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::bigint::ParseBigIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qubit::Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::qubit::Qubit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SQRT_2` [INFO] [stdout] --> src/quantum_circuit.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::f32::consts::{TAU, SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Complex` [INFO] [stdout] --> src/quantum_circuit.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use nalgebra::{Complex}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/quantum_gate.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::Vector2` [INFO] [stdout] --> src/quantum_gate.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | use nalgebra::Vector2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::bigint::ParseBigIntError` [INFO] [stdout] --> src/matrix.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::bigint::ParseBigIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SQRT_2` [INFO] [stdout] --> src/quantum_circuit.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::f32::consts::{TAU, SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/quantum_circuit.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/quantum_circuit.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut gate = QuantumGate::identity(self.n_qubits); [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: `zero` [INFO] [stdout] --> src/quantum_gate.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let zero: Complex = Complex::zero(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/qubit.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Qubit { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | [INFO] [stdout] 21 | pub fn new(state : UnitVector2>) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn new_normalize(state : Vector2>) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn basis_0() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn basis_1() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn mix(lhs : Self, rhs: Self, lhs_weight: impl Into> + Copy, rhs_weight: impl Into> + Copy) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn almost_equals(&self , rhs : &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn measure(&self) -> (Measurement, Self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_coeffcient`, `global_rotation`, `multiplications_mod_n`, `cnot`, `reverse`, and `not` are never used [INFO] [stdout] --> src/quantum_gate.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QuantumGate { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_coeffcient(&self, i: usize, j:usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn global_rotation(n_qubits: usize, phase: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn multiplications_mod_n(n:usize, a:usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn cnot()-> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn reverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn not() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_coeffcient`, `scale`, `get`, and `invert` are never used [INFO] [stdout] --> src/matrix.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl SquareMatrix { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn get_coeffcient(&self, row: usize, col: usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn scale(&self, scalar: Complex) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn get(&self, i : usize, j : usize) -> Complex { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn invert(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec_normalize`, `all_bases`, and `almost_equals` are never used [INFO] [stdout] --> src/quantum_register.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl QuantumRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from_vec_normalize(vec : Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_bases(n_qubits: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn almost_equals(&self, rhs : impl Into) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `QuantumGateWithInputs` is never used [INFO] [stdout] --> src/quantum_circuit.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type QuantumGateWithInputs = (QuantumGate, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `singleton` is never used [INFO] [stdout] --> src/quantum_circuit.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl QuantumCircuit { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn singleton(gate : QuantumGate) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capital_n` is never read [INFO] [stdout] --> src/quantum_algorithm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ShorsAlgo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | capital_n : u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShorsAlgo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ShorsAlgo` should have a snake case name [INFO] [stdout] --> src/quantum_circuit.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn ShorsAlgo(capital_n : usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shors_algo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/quantum_circuit.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | let mut gate = QuantumGate::identity(self.n_qubits); [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 items `get_coeffcient`, `global_rotation`, `multiplications_mod_n`, and `reverse` are never used [INFO] [stdout] --> src/quantum_gate.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QuantumGate { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_coeffcient(&self, i: usize, j:usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn global_rotation(n_qubits: usize, phase: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn multiplications_mod_n(n:usize, a:usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn reverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_coeffcient`, `scale`, and `invert` are never used [INFO] [stdout] --> src/matrix.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 243 | impl SquareMatrix { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn get_coeffcient(&self, row: usize, col: usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn scale(&self, scalar: Complex) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn invert(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_vec_normalize` and `all_bases` are never used [INFO] [stdout] --> src/quantum_register.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl QuantumRegister { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from_vec_normalize(vec : Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_bases(n_qubits: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `QuantumGateWithInputs` is never used [INFO] [stdout] --> src/quantum_circuit.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type QuantumGateWithInputs = (QuantumGate, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `singleton` is never used [INFO] [stdout] --> src/quantum_circuit.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl QuantumCircuit { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn singleton(gate : QuantumGate) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capital_n` is never read [INFO] [stdout] --> src/quantum_algorithm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ShorsAlgo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | capital_n : u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShorsAlgo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ShorsAlgo` should have a snake case name [INFO] [stdout] --> src/quantum_circuit.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn ShorsAlgo(capital_n : usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shors_algo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.58s [INFO] running `Command { std: "docker" "inspect" "a9b14f07c2e97a0b22228aa9bb5005030be979650b3a0ad8b77e02ed959ea7dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9b14f07c2e97a0b22228aa9bb5005030be979650b3a0ad8b77e02ed959ea7dc", kill_on_drop: false }` [INFO] [stdout] a9b14f07c2e97a0b22228aa9bb5005030be979650b3a0ad8b77e02ed959ea7dc [INFO] checking kakaname/quantum_sim against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkakaname%2Fquantum_sim" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kakaname/quantum_sim on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kakaname/quantum_sim [INFO] finished tweaking git repo https://github.com/kakaname/quantum_sim [INFO] tweaked toml for git repo https://github.com/kakaname/quantum_sim written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kakaname/quantum_sim 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cea8334e2073c9c53b4205de8f56c2d932cff6e29ea43be4beee429c90626c2 [INFO] running `Command { std: "docker" "start" "-a" "4cea8334e2073c9c53b4205de8f56c2d932cff6e29ea43be4beee429c90626c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cea8334e2073c9c53b4205de8f56c2d932cff6e29ea43be4beee429c90626c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cea8334e2073c9c53b4205de8f56c2d932cff6e29ea43be4beee429c90626c2", kill_on_drop: false }` [INFO] [stdout] 4cea8334e2073c9c53b4205de8f56c2d932cff6e29ea43be4beee429c90626c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0a8b3724088efbad82208aad6da1c0a0fbce3c8721fa323d4f624e59a81f24f [INFO] running `Command { std: "docker" "start" "-a" "f0a8b3724088efbad82208aad6da1c0a0fbce3c8721fa323d4f624e59a81f24f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking nalgebra v0.32.4 [INFO] [stderr] Checking quantum v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/matrix.rs (1 fix) [INFO] [stderr] Fixed src/quantum_circuit.rs (3 fixes) [INFO] [stderr] Fixed src/quantum_gate.rs (2 fixes) [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> src/quantum_gate.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let zero: Complex = Complex::zero(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_coeffcient`, `global_rotation`, `multiplications_mod_n`, and `reverse` are never used [INFO] [stdout] --> src/quantum_gate.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QuantumGate { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_coeffcient(&self, i: usize, j:usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn global_rotation(n_qubits: usize, phase: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn multiplications_mod_n(n:usize, a:usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn reverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_coeffcient`, `scale`, and `invert` are never used [INFO] [stdout] --> src/matrix.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 242 | impl SquareMatrix { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn get_coeffcient(&self, row: usize, col: usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn scale(&self, scalar: Complex) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn invert(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_vec_normalize` and `all_bases` are never used [INFO] [stdout] --> src/quantum_register.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl QuantumRegister { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from_vec_normalize(vec : Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_bases(n_qubits: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `QuantumGateWithInputs` is never used [INFO] [stdout] --> src/quantum_circuit.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | type QuantumGateWithInputs = (QuantumGate, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `singleton` is never used [INFO] [stdout] --> src/quantum_circuit.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl QuantumCircuit { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn singleton(gate : QuantumGate) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capital_n` is never read [INFO] [stdout] --> src/quantum_algorithm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ShorsAlgo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | capital_n : u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShorsAlgo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ShorsAlgo` should have a snake case name [INFO] [stdout] --> src/quantum_circuit.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn ShorsAlgo(capital_n : usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shors_algo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/quantum_gate.rs (1 fix) [INFO] [stderr] Fixed src/quantum_circuit.rs (2 fixes) [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/qubit.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Qubit { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | [INFO] [stdout] 21 | pub fn new(state : UnitVector2>) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn new_normalize(state : Vector2>) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn basis_0() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn basis_1() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn mix(lhs : Self, rhs: Self, lhs_weight: impl Into> + Copy, rhs_weight: impl Into> + Copy) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn almost_equals(&self , rhs : &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn measure(&self) -> (Measurement, Self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_coeffcient`, `global_rotation`, `multiplications_mod_n`, `cnot`, `reverse`, and `not` are never used [INFO] [stdout] --> src/quantum_gate.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QuantumGate { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_coeffcient(&self, i: usize, j:usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn global_rotation(n_qubits: usize, phase: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn multiplications_mod_n(n:usize, a:usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn cnot()-> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn reverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn not() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_coeffcient`, `scale`, `get`, and `invert` are never used [INFO] [stdout] --> src/matrix.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 242 | impl SquareMatrix { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn get_coeffcient(&self, row: usize, col: usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn scale(&self, scalar: Complex) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn get(&self, i : usize, j : usize) -> Complex { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn invert(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec_normalize`, `all_bases`, and `almost_equals` are never used [INFO] [stdout] --> src/quantum_register.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl QuantumRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from_vec_normalize(vec : Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_bases(n_qubits: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn almost_equals(&self, rhs : impl Into) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `QuantumGateWithInputs` is never used [INFO] [stdout] --> src/quantum_circuit.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type QuantumGateWithInputs = (QuantumGate, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `singleton` is never used [INFO] [stdout] --> src/quantum_circuit.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl QuantumCircuit { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn singleton(gate : QuantumGate) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capital_n` is never read [INFO] [stdout] --> src/quantum_algorithm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ShorsAlgo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | capital_n : u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShorsAlgo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ShorsAlgo` should have a snake case name [INFO] [stdout] --> src/quantum_circuit.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn ShorsAlgo(capital_n : usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shors_algo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.07s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking quantum v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:192:38 [INFO] [stdout] | [INFO] [stdout] 192 | QuantumGate::not().apply(Qubit::basis_0()).almost_equals(Qubit::basis_1()) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:192:70 [INFO] [stdout] | [INFO] [stdout] 192 | QuantumGate::not().apply(Qubit::basis_0()).almost_equals(Qubit::basis_1()) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:195:38 [INFO] [stdout] | [INFO] [stdout] 195 | QuantumGate::not().apply(Qubit::basis_1()).almost_equals(Qubit::basis_0()) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:195:70 [INFO] [stdout] | [INFO] [stdout] 195 | QuantumGate::not().apply(Qubit::basis_1()).almost_equals(Qubit::basis_0()) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:198:38 [INFO] [stdout] | [INFO] [stdout] 198 | QuantumGate::not().apply(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., 3.)).almost_equals( [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:198:49 [INFO] [stdout] | [INFO] [stdout] 198 | QuantumGate::not().apply(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., 3.)).almost_equals( [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:198:67 [INFO] [stdout] | [INFO] [stdout] 198 | QuantumGate::not().apply(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., 3.)).almost_equals( [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | Qubit::mix(Qubit::basis_1(), Qubit::basis_0(), 1., 3.) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:199:28 [INFO] [stdout] | [INFO] [stdout] 199 | Qubit::mix(Qubit::basis_1(), Qubit::basis_0(), 1., 3.) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_gate.rs:199:46 [INFO] [stdout] | [INFO] [stdout] 199 | Qubit::mix(Qubit::basis_1(), Qubit::basis_0(), 1., 3.) [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 186 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:203:46 [INFO] [stdout] | [INFO] [stdout] 203 | let x_0 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 3./4. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:203:57 [INFO] [stdout] | [INFO] [stdout] 203 | let x_0 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 3./4. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:203:75 [INFO] [stdout] | [INFO] [stdout] 203 | let x_0 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 3./4. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Complex` [INFO] [stdout] --> src/quantum_circuit.rs:203:97 [INFO] [stdout] | [INFO] [stdout] 203 | let x_0 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 3./4. * Complex::i()))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Complex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 199 + use nalgebra::Complex; [INFO] [stdout] | [INFO] [stdout] 199 + use num::Complex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Complex` [INFO] [stdout] --> src/quantum_circuit.rs:203:124 [INFO] [stdout] | [INFO] [stdout] 203 | let x_0 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 3./4. * Complex::i()))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Complex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 199 + use nalgebra::Complex; [INFO] [stdout] | [INFO] [stdout] 199 + use num::Complex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:204:46 [INFO] [stdout] | [INFO] [stdout] 204 | let x_1 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 1./2. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:204:57 [INFO] [stdout] | [INFO] [stdout] 204 | let x_1 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 1./2. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Qubit` [INFO] [stdout] --> src/quantum_circuit.rs:204:75 [INFO] [stdout] | [INFO] [stdout] 204 | let x_1 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 1./2. * Complex::i()))); [INFO] [stdout] | ^^^^^ use of undeclared type `Qubit` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 199 + use crate::qubit::Qubit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Complex` [INFO] [stdout] --> src/quantum_circuit.rs:204:97 [INFO] [stdout] | [INFO] [stdout] 204 | let x_1 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 1./2. * Complex::i()))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Complex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 199 + use nalgebra::Complex; [INFO] [stdout] | [INFO] [stdout] 199 + use num::Complex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Complex` [INFO] [stdout] --> src/quantum_circuit.rs:204:124 [INFO] [stdout] | [INFO] [stdout] 204 | let x_1 = QuantumRegister::singleton(Qubit::mix(Qubit::basis_0(), Qubit::basis_1(), 1., Complex::exp(TAU * 1./2. * Complex::i()))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Complex` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 199 + use nalgebra::Complex; [INFO] [stdout] | [INFO] [stdout] 199 + use num::Complex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/qubit.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Qubit { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 20 | [INFO] [stdout] 21 | pub fn new(state : UnitVector2>) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn new_normalize(state : Vector2>) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn basis_0() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn basis_1() -> Self{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn mix(lhs : Self, rhs: Self, lhs_weight: impl Into> + Copy, rhs_weight: impl Into> + Copy) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn almost_equals(&self , rhs : &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn measure(&self) -> (Measurement, Self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Normed` [INFO] [stdout] --> src/matrix.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use nalgebra::{Complex, ComplexField, DMatrix, DVector, Normed, Unit}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_coeffcient`, `global_rotation`, `multiplications_mod_n`, `cnot`, `reverse`, and `not` are never used [INFO] [stdout] --> src/quantum_gate.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl QuantumGate { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_coeffcient(&self, i: usize, j:usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn global_rotation(n_qubits: usize, phase: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn multiplications_mod_n(n:usize, a:usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn cnot()-> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn reverse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn not() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_coeffcient`, `scale`, `get`, and `invert` are never used [INFO] [stdout] --> src/matrix.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 242 | impl SquareMatrix { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn get_coeffcient(&self, row: usize, col: usize) -> Complex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn scale(&self, scalar: Complex) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn get(&self, i : usize, j : usize) -> Complex { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn invert(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vec_normalize`, `all_bases`, and `almost_equals` are never used [INFO] [stdout] --> src/quantum_register.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl QuantumRegister { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn from_vec_normalize(vec : Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_bases(n_qubits: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn almost_equals(&self, rhs : impl Into) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `QuantumGateWithInputs` is never used [INFO] [stdout] --> src/quantum_circuit.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | type QuantumGateWithInputs = (QuantumGate, Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `singleton` is never used [INFO] [stdout] --> src/quantum_circuit.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl QuantumCircuit { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn singleton(gate : QuantumGate) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `capital_n` is never read [INFO] [stdout] --> src/quantum_algorithm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ShorsAlgo { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 7 | capital_n : u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShorsAlgo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ShorsAlgo` should have a snake case name [INFO] [stdout] --> src/quantum_circuit.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn ShorsAlgo(capital_n : usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `shors_algo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `zero` [INFO] [stdout] --> src/quantum_gate.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let zero: Complex = Complex::zero(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_zero` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `quantum` (bin "quantum" test) due to 21 previous errors; 2 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f0a8b3724088efbad82208aad6da1c0a0fbce3c8721fa323d4f624e59a81f24f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0a8b3724088efbad82208aad6da1c0a0fbce3c8721fa323d4f624e59a81f24f", kill_on_drop: false }` [INFO] [stdout] f0a8b3724088efbad82208aad6da1c0a0fbce3c8721fa323d4f624e59a81f24f