[INFO] cloning repository https://github.com/forest1040/qustV2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/forest1040/qustV2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforest1040%2FqustV2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforest1040%2FqustV2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70ac6b86da491407f032af037f6719243a8f82ad [INFO] testing forest1040/qustV2 against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fforest1040%2FqustV2" "/workspace/builds/worker-105/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-105/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/forest1040/qustV2 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/forest1040/qustV2 [INFO] finished tweaking git repo https://github.com/forest1040/qustV2 [INFO] tweaked toml for git repo https://github.com/forest1040/qustV2 written to /workspace/builds/worker-105/source/Cargo.toml [INFO] crate git repo https://github.com/forest1040/qustV2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1c2235d39bdf7f274df31d136d13901171b1fa857a5a48c36b76a439f865a3b [INFO] running `Command { std: "docker" "start" "-a" "b1c2235d39bdf7f274df31d136d13901171b1fa857a5a48c36b76a439f865a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1c2235d39bdf7f274df31d136d13901171b1fa857a5a48c36b76a439f865a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1c2235d39bdf7f274df31d136d13901171b1fa857a5a48c36b76a439f865a3b", kill_on_drop: false }` [INFO] [stdout] b1c2235d39bdf7f274df31d136d13901171b1fa857a5a48c36b76a439f865a3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ce23f174addad24decf9890f82a94aa3adb5c443127380d0dc08a890b8fbd9f [INFO] running `Command { std: "docker" "start" "-a" "0ce23f174addad24decf9890f82a94aa3adb5c443127380d0dc08a890b8fbd9f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling matrixmultiply v0.3.2 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ndarray v0.15.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling qustV2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/double.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/double.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/double.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/double.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/double.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/triple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/triple.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/triple.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `qustV2` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `qust_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `X` should have a snake case name [INFO] [stdout] --> src/gates/single.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn X(target_qubit: usize) -> QuantumGate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::complex::Complex` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num::complex::Complex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `qustV2` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `qust_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.02s [INFO] running `Command { std: "docker" "inspect" "0ce23f174addad24decf9890f82a94aa3adb5c443127380d0dc08a890b8fbd9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ce23f174addad24decf9890f82a94aa3adb5c443127380d0dc08a890b8fbd9f", kill_on_drop: false }` [INFO] [stdout] 0ce23f174addad24decf9890f82a94aa3adb5c443127380d0dc08a890b8fbd9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3468a92c63013738974f4a14a38df4097d3bc005dd5c8a69ed7c7365bd02fd22 [INFO] running `Command { std: "docker" "start" "-a" "3468a92c63013738974f4a14a38df4097d3bc005dd5c8a69ed7c7365bd02fd22", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling qustV2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/double.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/double.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/double.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/double.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/double.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/triple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/triple.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/triple.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `qustV2` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `qust_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `X` should have a snake case name [INFO] [stdout] --> src/gates/single.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn X(target_qubit: usize) -> QuantumGate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::complex::Complex` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use num::complex::Complex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `qustV2` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `qust_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_qubit` [INFO] [stdout] --> src/gates/single.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stdout] ... [INFO] [stdout] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/double.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/double.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/double.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/double.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/double.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/double.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `matrix_type` [INFO] [stdout] --> src/gates/triple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | matrix_type: GateMatrixType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pauli_id` [INFO] [stdout] --> src/gates/triple.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | pauli_id: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rotation_angle` [INFO] [stdout] --> src/gates/triple.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | rotation_angle: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `target_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | target_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `control_qubit_index` [INFO] [stdout] --> src/gates/triple.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | control_qubit_index: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/gates/triple.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `qustV2` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `qust_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `X` should have a snake case name [INFO] [stdout] --> src/gates/single.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn X(target_qubit: usize) -> QuantumGate { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.76s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/qustV2-5017b49faa34bc1d) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/qustV2-bb7afa8a4f6001b7) [INFO] running `Command { std: "docker" "inspect" "3468a92c63013738974f4a14a38df4097d3bc005dd5c8a69ed7c7365bd02fd22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3468a92c63013738974f4a14a38df4097d3bc005dd5c8a69ed7c7365bd02fd22", kill_on_drop: false }` [INFO] [stdout] 3468a92c63013738974f4a14a38df4097d3bc005dd5c8a69ed7c7365bd02fd22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-105/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5d0ee8ab3138b227b842c6b39f4141404fd175ee07a9b77eea9588239af0321e [INFO] running `Command { std: "docker" "start" "-a" "5d0ee8ab3138b227b842c6b39f4141404fd175ee07a9b77eea9588239af0321e", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `target_qubit` [INFO] [stderr] --> src/gates/single.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stderr] ... [INFO] [stderr] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target_qubit` [INFO] [stderr] --> src/gates/single.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | fn $mat(&mut self, target_qubit: usize) { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_qubit` [INFO] [stderr] ... [INFO] [stderr] 46 | gen_gates!(H, X, Y, Z, ID); [INFO] [stderr] | -------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `gen_gates` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `matrix_type` [INFO] [stderr] --> src/gates/double.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | matrix_type: GateMatrixType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/double.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pauli_id` [INFO] [stderr] --> src/gates/double.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | pauli_id: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/double.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `rotation_angle` [INFO] [stderr] --> src/gates/double.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | rotation_angle: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/double.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `target_qubit_index` [INFO] [stderr] --> src/gates/double.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | target_qubit_index: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/double.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `control_qubit_index` [INFO] [stderr] --> src/gates/double.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | control_qubit_index: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DoubleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/double.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `matrix_type` [INFO] [stderr] --> src/gates/triple.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | matrix_type: GateMatrixType, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/triple.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pauli_id` [INFO] [stderr] --> src/gates/triple.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | pauli_id: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/triple.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `rotation_angle` [INFO] [stderr] --> src/gates/triple.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | rotation_angle: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/triple.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `target_qubit_index` [INFO] [stderr] --> src/gates/triple.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | target_qubit_index: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/triple.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `control_qubit_index` [INFO] [stderr] --> src/gates/triple.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | control_qubit_index: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TripleGate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/gates/triple.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: crate `qustV2` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] = help: convert the identifier to snake case: `qust_v2` [INFO] [stderr] [INFO] [stderr] warning: function `X` should have a snake case name [INFO] [stderr] --> src/gates/single.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn X(target_qubit: usize) -> QuantumGate { [INFO] [stderr] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stderr] [INFO] [stderr] warning: `qustV2` (lib) generated 17 warnings (3 duplicates) [INFO] [stderr] warning: `qustV2` (lib test) generated 17 warnings (17 duplicates) [INFO] [stderr] warning: unused import: `num::complex::Complex` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use num::complex::Complex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `qustV2` (bin "qustV2" test) generated 2 warnings (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/qustV2-5017b49faa34bc1d) [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/qustV2-bb7afa8a4f6001b7) [INFO] [stdout] [INFO] [stderr] Doc-tests qustV2 [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5d0ee8ab3138b227b842c6b39f4141404fd175ee07a9b77eea9588239af0321e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d0ee8ab3138b227b842c6b39f4141404fd175ee07a9b77eea9588239af0321e", kill_on_drop: false }` [INFO] [stdout] 5d0ee8ab3138b227b842c6b39f4141404fd175ee07a9b77eea9588239af0321e