[INFO] cloning repository https://github.com/chrisculver/qc_simulator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chrisculver/qc_simulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrisculver%2Fqc_simulator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrisculver%2Fqc_simulator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5e90329df972d4b4aa8a13b4ceddbb50d1c060c6
[INFO] checking chrisculver/qc_simulator against beta-2021-10-15 for beta-1.56-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchrisculver%2Fqc_simulator" "/workspace/builds/worker-18/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-18/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/chrisculver/qc_simulator on toolchain beta-2021-10-15
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-10-15" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/chrisculver/qc_simulator
[INFO] finished tweaking git repo https://github.com/chrisculver/qc_simulator
[INFO] tweaked toml for git repo https://github.com/chrisculver/qc_simulator written to /workspace/builds/worker-18/source/Cargo.toml
[INFO] crate git repo https://github.com/chrisculver/qc_simulator already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-10-15" "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-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-10-15" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3c730f9d714c2c0f0608d7d09ae4334275f71e520d214535a6dfa9d2f05b3346
[INFO] running `Command { std: "docker" "start" "-a" "3c730f9d714c2c0f0608d7d09ae4334275f71e520d214535a6dfa9d2f05b3346", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3c730f9d714c2c0f0608d7d09ae4334275f71e520d214535a6dfa9d2f05b3346", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3c730f9d714c2c0f0608d7d09ae4334275f71e520d214535a6dfa9d2f05b3346", kill_on_drop: false }`
[INFO] [stdout] 3c730f9d714c2c0f0608d7d09ae4334275f71e520d214535a6dfa9d2f05b3346
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-18/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-10-15" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0e5ccd1511f8145fad6a9514b61ffd327757d38808b9b35646779c39d7ebf3de
[INFO] running `Command { std: "docker" "start" "-a" "0e5ccd1511f8145fad6a9514b61ffd327757d38808b9b35646779c39d7ebf3de", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Checking bytemuck v1.7.2
[INFO] [stderr]    Compiling syn v1.0.80
[INFO] [stderr]    Compiling typenum v1.14.0
[INFO] [stderr]    Compiling paste v1.0.5
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.29
[INFO] [stderr]     Checking matrixmultiply v0.3.1
[INFO] [stderr]     Checking safe_arch v0.6.0
[INFO] [stderr]    Compiling quote v1.0.10
[INFO] [stderr]     Checking wide v0.7.1
[INFO] [stderr]     Checking num-complex v0.4.0
[INFO] [stderr]     Checking approx v0.5.0
[INFO] [stderr]     Checking simba v0.6.0
[INFO] [stderr]    Compiling nalgebra-macros v0.1.0
[INFO] [stderr]     Checking nalgebra v0.29.0
[INFO] [stderr]     Checking qc_simulator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0412]: cannot find type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:65:37
[INFO] [stdout]    |
[INFO] [stdout] 65 |         assert_eq!(circ.gates,Vec::<Gate>::new());
[INFO] [stdout]    |                                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:80:34
[INFO] [stdout]    |
[INFO] [stdout] 80 |         let mut expected = Vec::<Gate>::new();
[INFO] [stdout]    |                                  ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:81:24
[INFO] [stdout]    |
[INFO] [stdout] 81 |         expected.push( Gate { 
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:86:24
[INFO] [stdout]    |
[INFO] [stdout] 86 |         expected.push( Gate { 
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 91 |         expected.push( Gate { 
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gate` in this scope
[INFO] [stdout]   --> src/circuit.rs:96:24
[INFO] [stdout]    |
[INFO] [stdout] 96 |         expected.push( Gate { 
[INFO] [stdout]    |                        ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 55 |     use crate::gate::Gate;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gate` in this scope
[INFO] [stdout]    --> src/circuit.rs:101:24
[INFO] [stdout]     |
[INFO] [stdout] 101 |         expected.push( Gate { 
[INFO] [stdout]     |                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 55  |     use crate::gate::Gate;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::Gate`
[INFO] [stdout]   --> src/gate.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 94 |     use super::Gate;
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/gate.rs:52:60
[INFO] [stdout]    |
[INFO] [stdout] 52 |             return DMatrix::<Complex>::from_fn(size,size, |r,c| Complex::new(0.,0.)); 
[INFO] [stdout]    |                                                            ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `c`
[INFO] [stdout]   --> src/gate.rs:52:62
[INFO] [stdout]    |
[INFO] [stdout] 52 |             return DMatrix::<Complex>::from_fn(size,size, |r,c| Complex::new(0.,0.)); 
[INFO] [stdout]    |                                                              ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `start` is never read
[INFO] [stdout]   --> src/gate.rs:27:21
[INFO] [stdout]    |
[INFO] [stdout] 27 |             let mut start = SMatrix::<Complex,2,2>::new(zero,zero,zero,zero);
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matrix`
[INFO] [stdout]   --> src/gate.rs:40:25
[INFO] [stdout]    |
[INFO] [stdout] 40 |                     let matrix = matrix.kronecker(&gate);
[INFO] [stdout]    |                         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `matrix`
[INFO] [stdout]   --> src/gate.rs:43:25
[INFO] [stdout]    |
[INFO] [stdout] 43 |                     let matrix = matrix.kronecker(&id);
[INFO] [stdout]    |                         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/gate.rs:56:25
[INFO] [stdout]    |
[INFO] [stdout] 56 |     fn cnot_elem(&self, i: usize, j: usize) -> Complex {
[INFO] [stdout]    |                         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> src/gate.rs:56:35
[INFO] [stdout]    |
[INFO] [stdout] 56 |     fn cnot_elem(&self, i: usize, j: usize) -> Complex {
[INFO] [stdout]    |                                   ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/simulator.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn run(mut self) {
[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: struct is never constructed: `Circuit`
[INFO] [stdout]  --> src/circuit.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Circuit {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `x`
[INFO] [stdout]   --> src/circuit.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn x(&mut self, q: usize ) {
[INFO] [stdout]    |            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `y`
[INFO] [stdout]   --> src/circuit.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn y(&mut self, q: usize ) {
[INFO] [stdout]    |            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `z`
[INFO] [stdout]   --> src/circuit.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn z(&mut self, q: usize ) {
[INFO] [stdout]    |            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `h`
[INFO] [stdout]   --> src/circuit.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |     pub fn h(&mut self, q: usize ) {
[INFO] [stdout]    |            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `cx`
[INFO] [stdout]   --> src/circuit.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     pub fn cx(&mut self, c: usize, t: usize) {
[INFO] [stdout]    |            ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias is never used: `Complex`
[INFO] [stdout]  --> src/simulator.rs:3:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | type Complex = na::Complex<f64>;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct is never constructed: `State`
[INFO] [stdout]  --> src/simulator.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct State
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/simulator.rs:13:8
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn new(n: Option<usize>) -> State {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct is never constructed: `Simulator`
[INFO] [stdout]   --> src/simulator.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct Simulator {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `run`
[INFO] [stdout]   --> src/simulator.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn run(mut self) {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias is never used: `Complex`
[INFO] [stdout]  --> src/gate.rs:2:1
[INFO] [stdout]   |
[INFO] [stdout] 2 | type Complex = na::Complex<f64>;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_matrix`
[INFO] [stdout]   --> src/gate.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub fn get_matrix(self, nq: usize) -> DMatrix<Complex> 
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `cnot_elem`
[INFO] [stdout]   --> src/gate.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 |     fn cnot_elem(&self, i: usize, j: usize) -> Complex {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `get_single_qubit_gate`
[INFO] [stdout]   --> src/gate.rs:60:8
[INFO] [stdout]    |
[INFO] [stdout] 60 |     fn get_single_qubit_gate(&self) -> Matrix2<Complex> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias is never used: `Mat2x2`
[INFO] [stdout]   --> src/gate.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |         type Mat2x2 = SMatrix::<Complex,2,2>;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 24 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `qc_simulator` due to 8 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "0e5ccd1511f8145fad6a9514b61ffd327757d38808b9b35646779c39d7ebf3de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e5ccd1511f8145fad6a9514b61ffd327757d38808b9b35646779c39d7ebf3de", kill_on_drop: false }`
[INFO] [stdout] 0e5ccd1511f8145fad6a9514b61ffd327757d38808b9b35646779c39d7ebf3de
