[INFO] cloning repository https://github.com/T0kers/quantum-computer-simulator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/T0kers/quantum-computer-simulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FT0kers%2Fquantum-computer-simulator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FT0kers%2Fquantum-computer-simulator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2d685eefab9a99c795ec2393fbb78acb94b5212 [INFO] checking T0kers/quantum-computer-simulator against try#2c4e58eac5a232e49065e517c1cf50b2715ccf85 for pr-140283 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FT0kers%2Fquantum-computer-simulator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/T0kers/quantum-computer-simulator [INFO] finished tweaking git repo https://github.com/T0kers/quantum-computer-simulator [INFO] tweaked toml for git repo https://github.com/T0kers/quantum-computer-simulator written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/T0kers/quantum-computer-simulator on toolchain 2c4e58eac5a232e49065e517c1cf50b2715ccf85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/T0kers/quantum-computer-simulator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fba98194f643a26752beab8912082ec5f0c57e470ee7ce08e18c725266dd911c [INFO] running `Command { std: "docker" "start" "-a" "fba98194f643a26752beab8912082ec5f0c57e470ee7ce08e18c725266dd911c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fba98194f643a26752beab8912082ec5f0c57e470ee7ce08e18c725266dd911c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fba98194f643a26752beab8912082ec5f0c57e470ee7ce08e18c725266dd911c", kill_on_drop: false }` [INFO] [stdout] fba98194f643a26752beab8912082ec5f0c57e470ee7ce08e18c725266dd911c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2c4e58eac5a232e49065e517c1cf50b2715ccf85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd4dd5a641d74361b426afd42bff6af6a52e1ed8c4b468ade53c9b46853b7eb6 [INFO] running `Command { std: "docker" "start" "-a" "bd4dd5a641d74361b426afd42bff6af6a52e1ed8c4b468ade53c9b46853b7eb6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking quantum_computer_simulator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CNOT`, `CZ`, `PAULI_X`, `PAULI_Y`, and `PAULI_Z` [INFO] [stdout] --> src/circuit.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | state_vector::{rx, ry, rz, StateVector, CNOT, CZ, HADAMARD, PAULI_X, PAULI_Y, PAULI_Z}, [INFO] [stdout] | ^^^^ ^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `circuit::Qubit` [INFO] [stdout] --> src/state_vector.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | circuit::Qubit, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CBit` and `Qubit` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use circuit::{CBit, Circuit, Qubit}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CNOT`, `CZ`, `PAULI_X`, `PAULI_Y`, and `PAULI_Z` [INFO] [stdout] --> src/circuit.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | state_vector::{rx, ry, rz, StateVector, CNOT, CZ, HADAMARD, PAULI_X, PAULI_Y, PAULI_Z}, [INFO] [stdout] | ^^^^ ^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `circuit::Qubit` [INFO] [stdout] --> src/state_vector.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | circuit::Qubit, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CBit` and `Qubit` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use circuit::{CBit, Circuit, Qubit}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/state_vector.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 301 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 302 | [INFO] [stdout] 303 | let j110 = todo!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/state_vector.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 301 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 302 | [INFO] [stdout] 303 | let j110 = todo!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qubits` [INFO] [stdout] --> src/circuit.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | Operation::Custom(qubits, operation) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_qubits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> src/circuit.rs:150:47 [INFO] [stdout] | [INFO] [stdout] 150 | Operation::Custom(qubits, operation) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `qubits` [INFO] [stdout] --> src/circuit.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | Operation::Custom(qubits, operation) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_qubits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operation` [INFO] [stdout] --> src/circuit.rs:150:47 [INFO] [stdout] | [INFO] [stdout] 150 | Operation::Custom(qubits, operation) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control0_mask` [INFO] [stdout] --> src/state_vector.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | let control0_mask = 1 << control0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control0_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control1_mask` [INFO] [stdout] --> src/state_vector.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let control1_mask = 1 << control1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control1_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_mask` [INFO] [stdout] --> src/state_vector.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let target_mask = 1 << target; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j110` [INFO] [stdout] --> src/state_vector.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let j110 = todo!(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_j110` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j111` [INFO] [stdout] --> src/state_vector.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | let j111 = todo!(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_j111` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/state_vector.rs:416:26 [INFO] [stdout] | [INFO] [stdout] 416 | pub fn tensor(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entanglement` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn entanglement() -> Circuit { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shor_code` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn shor_code() -> Circuit { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexGenerator` is never constructed [INFO] [stdout] --> src/state_vector.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct IndexGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_indexes` is never used [INFO] [stdout] --> src/state_vector.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl IndexGenerator { [INFO] [stdout] | --------------------------------------- associated function in this implementation [INFO] [stdout] 17 | fn from_indexes(indexes: [usize; N]) -> IndexGenerator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control0_mask` [INFO] [stdout] --> src/state_vector.rs:297:13 [INFO] [stdout] | [INFO] [stdout] 297 | let control0_mask = 1 << control0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control0_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `control1_mask` [INFO] [stdout] --> src/state_vector.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let control1_mask = 1 << control1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_control1_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_mask` [INFO] [stdout] --> src/state_vector.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let target_mask = 1 << target; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j110` [INFO] [stdout] --> src/state_vector.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let j110 = todo!(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_j110` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j111` [INFO] [stdout] --> src/state_vector.rs:304:13 [INFO] [stdout] | [INFO] [stdout] 304 | let j111 = todo!(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_j111` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/state_vector.rs:416:26 [INFO] [stdout] | [INFO] [stdout] 416 | pub fn tensor(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entanglement` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn entanglement() -> Circuit { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shor_code` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn shor_code() -> Circuit { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexGenerator` is never constructed [INFO] [stdout] --> src/state_vector.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct IndexGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_indexes` is never used [INFO] [stdout] --> src/state_vector.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl IndexGenerator { [INFO] [stdout] | --------------------------------------- associated function in this implementation [INFO] [stdout] 17 | fn from_indexes(indexes: [usize; N]) -> IndexGenerator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.65s [INFO] running `Command { std: "docker" "inspect" "bd4dd5a641d74361b426afd42bff6af6a52e1ed8c4b468ade53c9b46853b7eb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd4dd5a641d74361b426afd42bff6af6a52e1ed8c4b468ade53c9b46853b7eb6", kill_on_drop: false }` [INFO] [stdout] bd4dd5a641d74361b426afd42bff6af6a52e1ed8c4b468ade53c9b46853b7eb6