[INFO] cloning repository https://github.com/to24toro/diraq [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/to24toro/diraq" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fto24toro%2Fdiraq", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fto24toro%2Fdiraq'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b15bd76efe667a4ce84b474ade2e07eeb48cd29 [INFO] testing to24toro/diraq against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fto24toro%2Fdiraq" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/to24toro/diraq [INFO] finished tweaking git repo https://github.com/to24toro/diraq [INFO] tweaked toml for git repo https://github.com/to24toro/diraq written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/to24toro/diraq on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/to24toro/diraq 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d001c46db83db5b0be6adde9cf4972b251f3d47a15e5cd44fa5f755000dca4f [INFO] running `Command { std: "docker" "start" "-a" "8d001c46db83db5b0be6adde9cf4972b251f3d47a15e5cd44fa5f755000dca4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d001c46db83db5b0be6adde9cf4972b251f3d47a15e5cd44fa5f755000dca4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d001c46db83db5b0be6adde9cf4972b251f3d47a15e5cd44fa5f755000dca4f", kill_on_drop: false }` [INFO] [stdout] 8d001c46db83db5b0be6adde9cf4972b251f3d47a15e5cd44fa5f755000dca4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 290f0be59db5508ca1cfb53476a0478745db0b60d01909229278c65f2f5db4f5 [INFO] running `Command { std: "docker" "start" "-a" "290f0be59db5508ca1cfb53476a0478745db0b60d01909229278c65f2f5db4f5", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling matrixmultiply v0.3.2 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling diraq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/algebra/complex.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::PI; [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: `crate::circuit` [INFO] [stdout] --> src/circuit/circuit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::circuit; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::EPSILON` [INFO] [stdout] --> src/circuit/circuit.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::f64::EPSILON; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Array2` [INFO] [stdout] --> src/gate/base_gates.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{array, prelude::Array2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array` [INFO] [stdout] --> src/state/state.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{array, prelude::Array1}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DoubleGate` and `SingleGate` [INFO] [stdout] --> src/main.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use gate::base_gates::{DoubleGate, SingleGate}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/circuit/circuit.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use num::{complex::Complex, One, Zero}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `One` [INFO] [stdout] --> src/circuit/circuit.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | use num::{complex::Complex, One, Zero}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::complex::ComplexFloat` [INFO] [stdout] --> src/circuit/circuit.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num::complex::ComplexFloat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Complex` is never constructed [INFO] [stdout] --> src/algebra/complex.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Complex { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `norm`, `real`, and `imaginary` are never used [INFO] [stdout] --> src/algebra/complex.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Complex { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(real: f64, imaginary: f64) -> Complex { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn norm(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn real(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn imaginary(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `masks` is never used [INFO] [stdout] --> src/algebra/matrix.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn masks(qubit: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `indices` is never used [INFO] [stdout] --> src/algebra/matrix.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn indices( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MeasurementResult` is never constructed [INFO] [stdout] --> src/circuit/circuit.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MeasurementResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Basic` is never used [INFO] [stdout] --> src/circuit/circuit.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | enum Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/circuit/circuit.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl MeasurementResult { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 34 | fn new(qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/circuit/circuit.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl QuantumCircuit { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn measure(&mut self, qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn H(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn X(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn Y(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn Z(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn P(&mut self, qubit: usize, theta: f64) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn CNOT(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn CZ(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn Toffoli(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn CCSWAP(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/gate/base_gates.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl SingleGate { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn X() -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn Y() -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn Z() -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn P(theta: f64) -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn I() -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `CNOT` and `CZ` are never used [INFO] [stdout] --> src/gate/base_gates.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl DoubleGate { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 104 | pub fn CNOT() -> Gate { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn CZ() -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TripleGate` is never constructed [INFO] [stdout] --> src/gate/base_gates.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct TripleGate {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `Toffoli` and `CCSWAP` are never used [INFO] [stdout] --> src/gate/base_gates.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl TripleGate { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 168 | pub fn Toffoli() -> Gate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn CCSWAP() -> Gate { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `size` are never used [INFO] [stdout] --> src/gate/gate.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Gate { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(size: usize) -> Gate { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `H` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn H(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `X` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn X(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Y` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn Y(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Z` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn Z(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn P(&mut self, qubit: usize, theta: f64) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `I` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CNOT` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CNOT(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CZ` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn CZ(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SWAP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn SWAP(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn CP(&mut self, ctrl_qubit: usize, target_qubit: usize, theta: f64) { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Toffoli` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn Toffoli(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CCSWAP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn CCSWAP(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `QFT` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn QFT(&mut self, from_qubit: usize, to_qubit: usize) { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `qft` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `H` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn H() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `X` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn X() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Y` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Y() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Z` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn Z() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn P(theta: f64) -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `I` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn I() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RX` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RY` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RZ` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CNOT` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn CNOT() -> Gate { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CZ` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn CZ() -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn CP(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SWAP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn SWAP() -> Gate { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Toffoli` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn Toffoli() -> Gate { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CCSWAP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn CCSWAP() -> Gate { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.68s [INFO] running `Command { std: "docker" "inspect" "290f0be59db5508ca1cfb53476a0478745db0b60d01909229278c65f2f5db4f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "290f0be59db5508ca1cfb53476a0478745db0b60d01909229278c65f2f5db4f5", kill_on_drop: false }` [INFO] [stdout] 290f0be59db5508ca1cfb53476a0478745db0b60d01909229278c65f2f5db4f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a111b629003cb99297913bf2ea811382ee6d4fa652298b7e0385ae962024e80 [INFO] running `Command { std: "docker" "start" "-a" "6a111b629003cb99297913bf2ea811382ee6d4fa652298b7e0385ae962024e80", kill_on_drop: false }` [INFO] [stderr] Compiling diraq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/algebra/complex.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::PI; [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: `crate::circuit` [INFO] [stdout] --> src/circuit/circuit.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::circuit; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Array2` [INFO] [stdout] --> src/gate/base_gates.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use ndarray::{array, prelude::Array2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array` [INFO] [stdout] --> src/state/state.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::{array, prelude::Array1}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DoubleGate` and `SingleGate` [INFO] [stdout] --> src/main.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use gate::base_gates::{DoubleGate, SingleGate}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/circuit/circuit.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let mut qc = QuantumCircuit::new(1); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Complex` is never constructed [INFO] [stdout] --> src/algebra/complex.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Complex { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `norm`, `real`, and `imaginary` are never used [INFO] [stdout] --> src/algebra/complex.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Complex { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(real: f64, imaginary: f64) -> Complex { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn norm(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn real(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn imaginary(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `masks` is never used [INFO] [stdout] --> src/algebra/matrix.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn masks(qubit: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `indices` is never used [INFO] [stdout] --> src/algebra/matrix.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn indices( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MeasurementResult` is never constructed [INFO] [stdout] --> src/circuit/circuit.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MeasurementResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Basic` is never used [INFO] [stdout] --> src/circuit/circuit.rs:28:6 [INFO] [stdout] | [INFO] [stdout] 28 | enum Basic { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/circuit/circuit.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl MeasurementResult { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 34 | fn new(qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `measure` and `I` are never used [INFO] [stdout] --> src/circuit/circuit.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl QuantumCircuit { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn measure(&mut self, qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `I`, `RX`, `RY`, and `RZ` are never used [INFO] [stdout] --> src/gate/base_gates.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl SingleGate { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn I() -> Gate { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `size` are never used [INFO] [stdout] --> src/gate/gate.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Gate { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(size: usize) -> Gate { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `H` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn H(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `X` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn X(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Y` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn Y(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Z` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn Z(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn P(&mut self, qubit: usize, theta: f64) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `I` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CNOT` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn CNOT(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CZ` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn CZ(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SWAP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn SWAP(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn CP(&mut self, ctrl_qubit: usize, target_qubit: usize, theta: f64) { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Toffoli` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn Toffoli(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CCSWAP` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn CCSWAP(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `QFT` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn QFT(&mut self, from_qubit: usize, to_qubit: usize) { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `qft` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `X_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn X_test() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `x_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Y_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn Y_test() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `y_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Z_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn Z_test() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `z_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `P_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn P_test() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `p_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `H_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn H_test() { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `h_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CNOT_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:278:4 [INFO] [stdout] | [INFO] [stdout] 278 | fn CNOT_test() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cnot_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CZ_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn CZ_test() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cz_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CP_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:302:4 [INFO] [stdout] | [INFO] [stdout] 302 | fn CP_test() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cp_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `SWAP_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:317:4 [INFO] [stdout] | [INFO] [stdout] 317 | fn SWAP_test() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `swap_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Toffoli_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:332:4 [INFO] [stdout] | [INFO] [stdout] 332 | fn Toffoli_test() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `toffoli_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `CCSWAP_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:350:4 [INFO] [stdout] | [INFO] [stdout] 350 | fn CCSWAP_test() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `ccswap_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `QFT_test` should have a snake case name [INFO] [stdout] --> src/circuit/circuit.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn QFT_test() { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `qft_test` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `H` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn H() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `X` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn X() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Y` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn Y() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Z` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn Z() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `P` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn P(theta: f64) -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case: `p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `I` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn I() -> Gate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RX` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RY` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `RZ` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `rz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CNOT` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn CNOT() -> Gate { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CZ` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn CZ() -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn CP(theta: f64) -> Gate { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `SWAP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn SWAP() -> Gate { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Toffoli` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn Toffoli() -> Gate { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `CCSWAP` should have a snake case name [INFO] [stdout] --> src/gate/base_gates.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn CCSWAP() -> Gate { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "6a111b629003cb99297913bf2ea811382ee6d4fa652298b7e0385ae962024e80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a111b629003cb99297913bf2ea811382ee6d4fa652298b7e0385ae962024e80", kill_on_drop: false }` [INFO] [stdout] 6a111b629003cb99297913bf2ea811382ee6d4fa652298b7e0385ae962024e80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 480a4e2e08ebf5238b3bda6edc9c13082215608f6dd966ea88e0b081d75265a1 [INFO] running `Command { std: "docker" "start" "-a" "480a4e2e08ebf5238b3bda6edc9c13082215608f6dd966ea88e0b081d75265a1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::f64::consts::PI` [INFO] [stderr] --> src/algebra/complex.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::f64::consts::PI; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::circuit` [INFO] [stderr] --> src/circuit/circuit.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::circuit; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude::Array2` [INFO] [stderr] --> src/gate/base_gates.rs:2:22 [INFO] [stderr] | [INFO] [stderr] 2 | use ndarray::{array, prelude::Array2}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `array` [INFO] [stderr] --> src/state/state.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use ndarray::{array, prelude::Array1}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DoubleGate` and `SingleGate` [INFO] [stderr] --> src/main.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | use gate::base_gates::{DoubleGate, SingleGate}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/circuit/circuit.rs:209:9 [INFO] [stderr] | [INFO] [stderr] 209 | let mut qc = QuantumCircuit::new(1); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Complex` is never constructed [INFO] [stderr] --> src/algebra/complex.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct Complex { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `norm`, `real`, and `imaginary` are never used [INFO] [stderr] --> src/algebra/complex.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl Complex { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] 18 | pub fn new(real: f64, imaginary: f64) -> Complex { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn norm(&self) -> f64 { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn real(&self) -> f64 { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn imaginary(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `masks` is never used [INFO] [stderr] --> src/algebra/matrix.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn masks(qubit: usize) -> (usize, usize) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `indices` is never used [INFO] [stderr] --> src/algebra/matrix.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn indices( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MeasurementResult` is never constructed [INFO] [stderr] --> src/circuit/circuit.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct MeasurementResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `Basic` is never used [INFO] [stderr] --> src/circuit/circuit.rs:28:6 [INFO] [stderr] | [INFO] [stderr] 28 | enum Basic { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/circuit/circuit.rs:34:8 [INFO] [stderr] | [INFO] [stderr] 33 | impl MeasurementResult { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 34 | fn new(qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `measure` and `I` are never used [INFO] [stderr] --> src/circuit/circuit.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 54 | impl QuantumCircuit { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 70 | pub fn measure(&mut self, qubit: usize, shots: usize) -> MeasurementResult { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `I`, `RX`, `RY`, and `RZ` are never used [INFO] [stderr] --> src/gate/base_gates.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl SingleGate { [INFO] [stderr] | --------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 57 | pub fn I() -> Gate { [INFO] [stderr] | ^ [INFO] [stderr] ... [INFO] [stderr] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `size` are never used [INFO] [stderr] --> src/gate/gate.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Gate { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 12 | pub fn new(size: usize) -> Gate { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | pub fn size(&self) -> usize { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `H` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:99:12 [INFO] [stderr] | [INFO] [stderr] 99 | pub fn H(&mut self, qubit: usize) { [INFO] [stderr] | ^ help: convert the identifier to snake case: `h` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `X` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn X(&mut self, qubit: usize) { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stderr] [INFO] [stderr] warning: method `Y` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:109:12 [INFO] [stderr] | [INFO] [stderr] 109 | pub fn Y(&mut self, qubit: usize) { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stderr] [INFO] [stderr] warning: method `Z` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | pub fn Z(&mut self, qubit: usize) { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stderr] [INFO] [stderr] warning: method `P` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:119:12 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn P(&mut self, qubit: usize, theta: f64) { [INFO] [stderr] | ^ help: convert the identifier to snake case: `p` [INFO] [stderr] [INFO] [stderr] warning: method `I` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn I(&mut self, qubit: usize) { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stderr] [INFO] [stderr] warning: method `CNOT` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:129:12 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn CNOT(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stderr] [INFO] [stderr] warning: method `CZ` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:136:12 [INFO] [stderr] | [INFO] [stderr] 136 | pub fn CZ(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stderr] [INFO] [stderr] warning: method `SWAP` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:143:12 [INFO] [stderr] | [INFO] [stderr] 143 | pub fn SWAP(&mut self, ctrl_qubit: usize, target_qubit: usize) { [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stderr] [INFO] [stderr] warning: method `CP` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:150:12 [INFO] [stderr] | [INFO] [stderr] 150 | pub fn CP(&mut self, ctrl_qubit: usize, target_qubit: usize, theta: f64) { [INFO] [stderr] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stderr] [INFO] [stderr] warning: method `Toffoli` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:157:12 [INFO] [stderr] | [INFO] [stderr] 157 | pub fn Toffoli(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stderr] [INFO] [stderr] warning: method `CCSWAP` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:169:12 [INFO] [stderr] | [INFO] [stderr] 169 | pub fn CCSWAP(&mut self, ctrl_qubit1: usize, ctrl_qubit2: usize, target_qubit: usize) { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stderr] [INFO] [stderr] warning: method `QFT` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:181:12 [INFO] [stderr] | [INFO] [stderr] 181 | pub fn QFT(&mut self, from_qubit: usize, to_qubit: usize) { [INFO] [stderr] | ^^^ help: convert the identifier to snake case: `qft` [INFO] [stderr] [INFO] [stderr] warning: function `X_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:203:4 [INFO] [stderr] | [INFO] [stderr] 203 | fn X_test() { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `x_test` [INFO] [stderr] [INFO] [stderr] warning: function `Y_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:215:4 [INFO] [stderr] | [INFO] [stderr] 215 | fn Y_test() { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `y_test` [INFO] [stderr] [INFO] [stderr] warning: function `Z_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:229:4 [INFO] [stderr] | [INFO] [stderr] 229 | fn Z_test() { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `z_test` [INFO] [stderr] [INFO] [stderr] warning: function `P_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:243:4 [INFO] [stderr] | [INFO] [stderr] 243 | fn P_test() { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `p_test` [INFO] [stderr] [INFO] [stderr] warning: function `H_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:263:4 [INFO] [stderr] | [INFO] [stderr] 263 | fn H_test() { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `h_test` [INFO] [stderr] [INFO] [stderr] warning: function `CNOT_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:278:4 [INFO] [stderr] | [INFO] [stderr] 278 | fn CNOT_test() { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `cnot_test` [INFO] [stderr] [INFO] [stderr] warning: function `CZ_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:294:4 [INFO] [stderr] | [INFO] [stderr] 294 | fn CZ_test() { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cz_test` [INFO] [stderr] [INFO] [stderr] warning: function `CP_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:302:4 [INFO] [stderr] | [INFO] [stderr] 302 | fn CP_test() { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `cp_test` [INFO] [stderr] [INFO] [stderr] warning: function `SWAP_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:317:4 [INFO] [stderr] | [INFO] [stderr] 317 | fn SWAP_test() { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `swap_test` [INFO] [stderr] [INFO] [stderr] warning: function `Toffoli_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:332:4 [INFO] [stderr] | [INFO] [stderr] 332 | fn Toffoli_test() { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `toffoli_test` [INFO] [stderr] [INFO] [stderr] warning: function `CCSWAP_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:350:4 [INFO] [stderr] | [INFO] [stderr] 350 | fn CCSWAP_test() { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `ccswap_test` [INFO] [stderr] [INFO] [stderr] warning: function `QFT_test` should have a snake case name [INFO] [stderr] --> src/circuit/circuit.rs:367:4 [INFO] [stderr] | [INFO] [stderr] 367 | fn QFT_test() { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `qft_test` [INFO] [stderr] [INFO] [stderr] warning: method `H` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn H() -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case: `h` [INFO] [stderr] [INFO] [stderr] warning: method `X` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn X() -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stderr] [INFO] [stderr] warning: method `Y` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn Y() -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `y` [INFO] [stderr] [INFO] [stderr] warning: method `Z` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn Z() -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `z` [INFO] [stderr] [INFO] [stderr] warning: method `P` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn P(theta: f64) -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case: `p` [INFO] [stderr] [INFO] [stderr] warning: method `I` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 57 | pub fn I() -> Gate { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stderr] [INFO] [stderr] warning: method `RX` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn RX(theta: f64) -> Gate { [INFO] [stderr] | ^^ help: convert the identifier to snake case: `rx` [INFO] [stderr] [INFO] [stderr] warning: method `RY` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn RY(theta: f64) -> Gate { [INFO] [stderr] | ^^ help: convert the identifier to snake case: `ry` [INFO] [stderr] [INFO] [stderr] warning: method `RZ` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn RZ(theta: f64) -> Gate { [INFO] [stderr] | ^^ help: convert the identifier to snake case: `rz` [INFO] [stderr] [INFO] [stderr] warning: method `CNOT` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:104:12 [INFO] [stderr] | [INFO] [stderr] 104 | pub fn CNOT() -> Gate { [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `cnot` [INFO] [stderr] [INFO] [stderr] warning: method `CZ` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:119:12 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn CZ() -> Gate { [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `cz` [INFO] [stderr] [INFO] [stderr] warning: method `CP` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn CP(theta: f64) -> Gate { [INFO] [stderr] | ^^ help: convert the identifier to snake case: `cp` [INFO] [stderr] [INFO] [stderr] warning: method `SWAP` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:149:12 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn SWAP() -> Gate { [INFO] [stderr] | ^^^^ help: convert the identifier to snake case: `swap` [INFO] [stderr] [INFO] [stderr] warning: method `Toffoli` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:168:12 [INFO] [stderr] | [INFO] [stderr] 168 | pub fn Toffoli() -> Gate { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `toffoli` [INFO] [stderr] [INFO] [stderr] warning: method `CCSWAP` should have a snake case name [INFO] [stderr] --> src/gate/base_gates.rs:187:12 [INFO] [stderr] | [INFO] [stderr] 187 | pub fn CCSWAP() -> Gate { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `ccswap` [INFO] [stderr] [INFO] [stderr] warning: `diraq` (bin "diraq" test) generated 56 warnings (run `cargo fix --bin "diraq" --tests` to apply 6 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/diraq-94f0f7d61b67c6ca) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test circuit::circuit::CP_test ... ok [INFO] [stdout] test circuit::circuit::CCSWAP_test ... ok [INFO] [stdout] test circuit::circuit::CNOT_test ... ok [INFO] [stdout] test circuit::circuit::H_test ... ok [INFO] [stdout] test circuit::circuit::CZ_test ... ok [INFO] [stdout] test circuit::circuit::P_test ... ok [INFO] [stdout] test circuit::circuit::SWAP_test ... ok [INFO] [stdout] test circuit::circuit::QFT_test ... ok [INFO] [stdout] test circuit::circuit::X_test ... ok [INFO] [stdout] test circuit::circuit::Z_test ... ok [INFO] [stdout] test circuit::circuit::Toffoli_test ... ok [INFO] [stdout] test circuit::circuit::Y_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "480a4e2e08ebf5238b3bda6edc9c13082215608f6dd966ea88e0b081d75265a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "480a4e2e08ebf5238b3bda6edc9c13082215608f6dd966ea88e0b081d75265a1", kill_on_drop: false }` [INFO] [stdout] 480a4e2e08ebf5238b3bda6edc9c13082215608f6dd966ea88e0b081d75265a1