[INFO] cloning repository https://github.com/jjjk123/mc_simulation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jjjk123/mc_simulation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjjk123%2Fmc_simulation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjjk123%2Fmc_simulation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9ffab21b5f487d83ef839ef3f0931757ee35a2c [INFO] checking jjjk123/mc_simulation against master#419b3e2d3e350822550eee0e82eeded4d324d584 for pr-135536 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjjjk123%2Fmc_simulation" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jjjk123/mc_simulation on toolchain 419b3e2d3e350822550eee0e82eeded4d324d584 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+419b3e2d3e350822550eee0e82eeded4d324d584" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jjjk123/mc_simulation [INFO] finished tweaking git repo https://github.com/jjjk123/mc_simulation [INFO] tweaked toml for git repo https://github.com/jjjk123/mc_simulation written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jjjk123/mc_simulation 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" "+419b3e2d3e350822550eee0e82eeded4d324d584" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+419b3e2d3e350822550eee0e82eeded4d324d584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a083422f48f4324ecd4d51e87c0352b23f3de92dbbfea8428bfdc6956d7f8b1b [INFO] running `Command { std: "docker" "start" "-a" "a083422f48f4324ecd4d51e87c0352b23f3de92dbbfea8428bfdc6956d7f8b1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a083422f48f4324ecd4d51e87c0352b23f3de92dbbfea8428bfdc6956d7f8b1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a083422f48f4324ecd4d51e87c0352b23f3de92dbbfea8428bfdc6956d7f8b1b", kill_on_drop: false }` [INFO] [stdout] a083422f48f4324ecd4d51e87c0352b23f3de92dbbfea8428bfdc6956d7f8b1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+419b3e2d3e350822550eee0e82eeded4d324d584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c57ef1fbd74340978c4448183db8123e160d55d5623584e2cf6f35121db09db2 [INFO] running `Command { std: "docker" "start" "-a" "c57ef1fbd74340978c4448183db8123e160d55d5623584e2cf6f35121db09db2", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Checking rawpointer v0.1.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking clap_lex v0.2.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling clap_derive v3.1.18 [INFO] [stderr] Checking clap v3.1.18 [INFO] [stderr] Checking mc_simulation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `pdb::print_pdb` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use pdb::print_pdb; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pdb::print_pdb` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use pdb::print_pdb; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/pdb.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en` [INFO] [stdout] --> src/pdb.rs:4:70 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/metropolis.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_min` [INFO] [stdout] --> src/metropolis.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_d_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_max` [INFO] [stdout] --> src/metropolis.rs:6:78 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_d_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/pdb.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `en` [INFO] [stdout] --> src/pdb.rs:4:70 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_en` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/metropolis.rs:6:55 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_min` [INFO] [stdout] --> src/metropolis.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_d_min` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_max` [INFO] [stdout] --> src/metropolis.rs:6:78 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn simulation(atoms: &mut Vec, length: f32, temp: f32, d_min: f32, d_max: f32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_d_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | for j in 1..outer_cycles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | for j in 1..outer_cycles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 1..inner_cycles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 1..inner_cycles { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `z` is never read [INFO] [stdout] --> src/atom/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Atom { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub z: f32 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Atom` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_pdb` is never used [INFO] [stdout] --> src/pdb.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `z` is never read [INFO] [stdout] --> src/atom/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Atom { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub z: f32 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Atom` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_2D` should have a snake case name [INFO] [stdout] --> src/atoms.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_2D(atoms: &mut Vec, length: f32) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `generate_2_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_pdb` is never used [INFO] [stdout] --> src/pdb.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn print_pdb(atoms: &mut Vec, model: i32, file_name: &str, en: &f32) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_2D` should have a snake case name [INFO] [stdout] --> src/atoms.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn generate_2D(atoms: &mut Vec, length: f32) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `generate_2_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.47s [INFO] running `Command { std: "docker" "inspect" "c57ef1fbd74340978c4448183db8123e160d55d5623584e2cf6f35121db09db2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c57ef1fbd74340978c4448183db8123e160d55d5623584e2cf6f35121db09db2", kill_on_drop: false }` [INFO] [stdout] c57ef1fbd74340978c4448183db8123e160d55d5623584e2cf6f35121db09db2