[INFO] fetching crate qvnt 0.3.0... [INFO] checking qvnt-0.3.0 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] extracting crate qvnt 0.3.0 into /workspace/builds/worker-91/source [INFO] validating manifest of crates.io crate qvnt 0.3.0 on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-91/source/.cargo/config [INFO] started tweaking crates.io crate qvnt 0.3.0 [INFO] finished tweaking crates.io crate qvnt 0.3.0 [INFO] tweaked toml for crates.io crate qvnt 0.3.0 written to /workspace/builds/worker-91/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5dd33a752b8620e01e3136acc3290d3ff7f151821d5d942a39fbbf7133194ec [INFO] running `Command { std: "docker" "start" "-a" "b5dd33a752b8620e01e3136acc3290d3ff7f151821d5d942a39fbbf7133194ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5dd33a752b8620e01e3136acc3290d3ff7f151821d5d942a39fbbf7133194ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5dd33a752b8620e01e3136acc3290d3ff7f151821d5d942a39fbbf7133194ec", kill_on_drop: false }` [INFO] [stdout] b5dd33a752b8620e01e3136acc3290d3ff7f151821d5d942a39fbbf7133194ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] badd31089cf38063a120d7a00b0ba64b5ca19e4b9852be131688690a3d904a0b [INFO] running `Command { std: "docker" "start" "-a" "badd31089cf38063a120d7a00b0ba64b5ca19e4b9852be131688690a3d904a0b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking crossbeam-utils v0.8.5 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.5 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rayon-core v1.9.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand_distr v0.4.1 [INFO] [stderr] Checking qvnt v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Arc`, `BTreeMap`, `MulAssign`, `Mul`, `VecDeque`, `boxed::Box`, `crate::math::*`, `fmt`, `string::String` [INFO] [stdout] --> src/operator/mod.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{ BTreeMap, VecDeque, }, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | boxed::Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fmt, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | ops::{ Mul, MulAssign, }, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 7 | string::String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | sync::{ Arc } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | crate::math::*, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/applicable.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: glob import doesn't reexport anything because no candidate is public enough [INFO] [stdout] --> src/operator/atomic/id.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::rotate` [INFO] [stdout] --> src/operator/atomic/i_swap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::rotate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::rotate` [INFO] [stdout] --> src/operator/atomic/sqrt_swap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::rotate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rotate` [INFO] [stdout] --> src/operator/atomic/sqrt_i_swap.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{rotate, SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/single/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | math::{C, R, N}, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/single/pauli.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/single/rotate.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `C`, `R` [INFO] [stdout] --> src/operator/single/swap.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/multi/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | math::{C, R, N}, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::operator::atomic` [INFO] [stdout] --> src/operator/multi/qft.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::operator::atomic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/multi/qft.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/mod.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::math::{C, N, R, FRAC_PI_2}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `C`, `R` [INFO] [stdout] --> src/register/virtl.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{N, R, C}; [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Index`, `RangeFull`, `operator::*` [INFO] [stdout] --> src/register/quant.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | RangeFull, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | operator::*, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `operator::Op` [INFO] [stdout] --> src/lib.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::operator::{applicable::Applicable, MultiOp, Op, op}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `BTreeMap`, `MulAssign`, `Mul`, `VecDeque`, `boxed::Box`, `crate::math::*`, `fmt`, `string::String` [INFO] [stdout] --> src/operator/mod.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{ BTreeMap, VecDeque, }, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 4 | boxed::Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fmt, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | ops::{ Mul, MulAssign, }, [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] 7 | string::String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | sync::{ Arc } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | crate::math::*, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/applicable.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: glob import doesn't reexport anything because no candidate is public enough [INFO] [stdout] --> src/operator/atomic/id.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::rotate` [INFO] [stdout] --> src/operator/atomic/i_swap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::rotate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::math::rotate` [INFO] [stdout] --> src/operator/atomic/sqrt_swap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::rotate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rotate` [INFO] [stdout] --> src/operator/atomic/sqrt_i_swap.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{rotate, SQRT_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/single/mod.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | math::{C, R, N}, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/single/pauli.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/single/rotate.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `C`, `R` [INFO] [stdout] --> src/operator/single/swap.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `R` [INFO] [stdout] --> src/operator/multi/mod.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | math::{C, R, N}, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::operator::atomic` [INFO] [stdout] --> src/operator/multi/qft.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::operator::atomic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/multi/qft.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::math::{C, R, N}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `C` [INFO] [stdout] --> src/operator/mod.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::math::{C, N, R, FRAC_PI_2}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `C`, `R` [INFO] [stdout] --> src/register/virtl.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{N, R, C}; [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Index`, `RangeFull`, `operator::*` [INFO] [stdout] --> src/register/quant.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | RangeFull, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | operator::*, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `operator::Op` [INFO] [stdout] --> src/lib.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::operator::{applicable::Applicable, MultiOp, Op, op}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `atomic` [INFO] [stdout] --> src/operator/multi/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | atomic::*, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operator/atomic/ryy.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut psi = (psi[idx], psi[idx ^ self.ab_mask]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `atomic` [INFO] [stdout] --> src/operator/multi/mod.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | atomic::*, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut pend_ops = op::h(0b01); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `M1` [INFO] [stdout] --> src/types.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type M1 = [C; 4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `M2` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub type M2 = [C; 16]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `C_IMAG` [INFO] [stdout] --> src/math.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const C_IMAG: C = C{ re: 0., im: 1. }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `I_POW_TABLE` [INFO] [stdout] --> src/math.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub const I_POW_TABLE: [C; 4] = [ [INFO] [stdout] 11 | | C{ re: 1., im: 0. }, [INFO] [stdout] 12 | | C{ re: 0., im: 1. }, [INFO] [stdout] 13 | | C{ re: -1., im: 0. }, [INFO] [stdout] 14 | | C{ re: 0., im: -1. }, [INFO] [stdout] 15 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ANGLE_TABLE` [INFO] [stdout] --> src/math.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / pub const ANGLE_TABLE: [C; 46] = [ [INFO] [stdout] 18 | | C{ re: 1.0000000000000000, im: 0.00000000000000000 }, [INFO] [stdout] 19 | | C{ re: 0.9998476951563913, im: 0.01745240643728351 }, [INFO] [stdout] 20 | | C{ re: 0.9993908270190958, im: 0.03489949670250097 }, [INFO] [stdout] ... | [INFO] [stdout] 63 | | C{ re: 0.7071067811865476, im: 0.70710678118654760 }, [INFO] [stdout] 64 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_bits` [INFO] [stdout] --> src/math.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn count_bits(n: N) -> N { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `phase_from_rad` [INFO] [stdout] --> src/math.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn phase_from_rad(rad: R) -> C { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ULPS` [INFO] [stdout] --> src/math.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | const ULPS: i64 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_real` [INFO] [stdout] --> src/math.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn approx_real(x: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_eq` [INFO] [stdout] --> src/math.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn approx_eq(a: &C, b: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_eq_conj` [INFO] [stdout] --> src/math.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn approx_eq_conj(a: &C, b: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_diagonal_m1` [INFO] [stdout] --> src/math.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn is_diagonal_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_diagonal_m2` [INFO] [stdout] --> src/math.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn is_diagonal_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_unitary_m1` [INFO] [stdout] --> src/math.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_unitary_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `m2_mul_m2_herm` [INFO] [stdout] --> src/math.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn m2_mul_m2_herm(i: N, j: N, u: &M2) -> C { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_unitary_m2` [INFO] [stdout] --> src/math.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn is_unitary_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_scaled_unitary_m1` [INFO] [stdout] --> src/math.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn is_scaled_unitary_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_scaled_unitary_m2` [INFO] [stdout] --> src/math.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn is_scaled_unitary_m2(_: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hermitian_m1` [INFO] [stdout] --> src/math.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn is_hermitian_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hermitian_m2` [INFO] [stdout] --> src/math.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn is_hermitian_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SQRT_1_2` [INFO] [stdout] --> src/operator/atomic/h2.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const SQRT_1_2: R = crate::math::SQRT_2 * 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `_i` should have an upper case name [INFO] [stdout] --> src/lib.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub const _i: crate::types::C = crate::types::C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `_I` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Op` should have a snake case name [INFO] [stdout] --> src/operator/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub mod Op { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/operator/atomic/ryy.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut psi = (psi[idx], psi[idx ^ self.ab_mask]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `M1` [INFO] [stdout] --> src/types.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub type M1 = [C; 4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `M2` [INFO] [stdout] --> src/types.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub type M2 = [C; 16]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `C_IMAG` [INFO] [stdout] --> src/math.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const C_IMAG: C = C{ re: 0., im: 1. }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `I_POW_TABLE` [INFO] [stdout] --> src/math.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub const I_POW_TABLE: [C; 4] = [ [INFO] [stdout] 11 | | C{ re: 1., im: 0. }, [INFO] [stdout] 12 | | C{ re: 0., im: 1. }, [INFO] [stdout] 13 | | C{ re: -1., im: 0. }, [INFO] [stdout] 14 | | C{ re: 0., im: -1. }, [INFO] [stdout] 15 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ANGLE_TABLE` [INFO] [stdout] --> src/math.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / pub const ANGLE_TABLE: [C; 46] = [ [INFO] [stdout] 18 | | C{ re: 1.0000000000000000, im: 0.00000000000000000 }, [INFO] [stdout] 19 | | C{ re: 0.9998476951563913, im: 0.01745240643728351 }, [INFO] [stdout] 20 | | C{ re: 0.9993908270190958, im: 0.03489949670250097 }, [INFO] [stdout] ... | [INFO] [stdout] 63 | | C{ re: 0.7071067811865476, im: 0.70710678118654760 }, [INFO] [stdout] 64 | | ]; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `count_bits` [INFO] [stdout] --> src/math.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn count_bits(n: N) -> N { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `phase_from_rad` [INFO] [stdout] --> src/math.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn phase_from_rad(rad: R) -> C { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ULPS` [INFO] [stdout] --> src/math.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | const ULPS: i64 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_real` [INFO] [stdout] --> src/math.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn approx_real(x: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_eq` [INFO] [stdout] --> src/math.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn approx_eq(a: &C, b: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `approx_eq_conj` [INFO] [stdout] --> src/math.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn approx_eq_conj(a: &C, b: &C) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_diagonal_m1` [INFO] [stdout] --> src/math.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn is_diagonal_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_diagonal_m2` [INFO] [stdout] --> src/math.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn is_diagonal_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_unitary_m1` [INFO] [stdout] --> src/math.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn is_unitary_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `m2_mul_m2_herm` [INFO] [stdout] --> src/math.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn m2_mul_m2_herm(i: N, j: N, u: &M2) -> C { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_unitary_m2` [INFO] [stdout] --> src/math.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn is_unitary_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_scaled_unitary_m1` [INFO] [stdout] --> src/math.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn is_scaled_unitary_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_scaled_unitary_m2` [INFO] [stdout] --> src/math.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn is_scaled_unitary_m2(_: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hermitian_m1` [INFO] [stdout] --> src/math.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn is_hermitian_m1(u: &M1) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_hermitian_m2` [INFO] [stdout] --> src/math.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn is_hermitian_m2(u: &M2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SQRT_1_2` [INFO] [stdout] --> src/operator/atomic/h2.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | const SQRT_1_2: R = crate::math::SQRT_2 * 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bench_circuit` [INFO] [stdout] --> src/operator/mod.rs:292:19 [INFO] [stdout] | [INFO] [stdout] 292 | pub(crate) fn bench_circuit() -> MultiOp { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `_i` should have an upper case name [INFO] [stdout] --> src/lib.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub const _i: crate::types::C = crate::types::C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^^ help: convert the identifier to upper case (notice the capitalization): `_I` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Op` should have a snake case name [INFO] [stdout] --> src/operator/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub mod Op { [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `i` should have an upper case name [INFO] [stdout] --> src/operator/atomic/y.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | const i: C = C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `I` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `i` should have an upper case name [INFO] [stdout] --> src/operator/atomic/s.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | const i: C = C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `I` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `i` should have an upper case name [INFO] [stdout] --> src/operator/atomic/i_swap.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | const i: C = C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `I` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sqrt_i` should have an upper case name [INFO] [stdout] --> src/operator/atomic/sqrt_swap.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | const sqrt_i: C = C{ re: 0.5, im: 0.5 }; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `SQRT_I` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `i` should have an upper case name [INFO] [stdout] --> src/operator/atomic/sqrt_i_swap.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | const i: C = C{ re: 0.0, im: 1.0 }; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `I` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.73s [INFO] running `Command { std: "docker" "inspect" "badd31089cf38063a120d7a00b0ba64b5ca19e4b9852be131688690a3d904a0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "badd31089cf38063a120d7a00b0ba64b5ca19e4b9852be131688690a3d904a0b", kill_on_drop: false }` [INFO] [stdout] badd31089cf38063a120d7a00b0ba64b5ca19e4b9852be131688690a3d904a0b