[INFO] updating cached repository https://github.com/lcpp-org/RustBCA [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] [stderr] From https://github.com/lcpp-org/RustBCA [INFO] [stderr] * [new branch] code_refactor_into_modules -> code_refactor_into_modules [INFO] [stderr] b17dbd3..8a5b36f master -> master [INFO] [stderr] * [new branch] refactor_issue_7 -> refactor_issue_7 [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 8a5b36ff9f739319b7aa1be0d0f7f64b4641aabf [INFO] checking lcpp-org/RustBCA against master#0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf for pr-71814 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flcpp-org%2FRustBCA" "/workspace/builds/worker-11/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lcpp-org/RustBCA on toolchain 0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf [INFO] running `"/workspace/cargo-home/bin/cargo" "+0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/lcpp-org/RustBCA [INFO] finished tweaking git repo https://github.com/lcpp-org/RustBCA [INFO] tweaked toml for git repo https://github.com/lcpp-org/RustBCA written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/lcpp-org/RustBCA already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: unused manifest key: profile.release.target-cpu [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-11/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: unused manifest key: profile.release.target-cpu [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+0a675c5e02e6ecfda7d4e04aabd23a9935e0c4bf" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] dbe5c86960b1c81d3a2f7d0759576b2ffef7e3e03a7698363b51e237491c8bea [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "dbe5c86960b1c81d3a2f7d0759576b2ffef7e3e03a7698363b51e237491c8bea"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] warning: unused manifest key: profile.release.target-cpu [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking gimli v0.21.0 [INFO] [stderr] Checking object v0.19.0 [INFO] [stderr] Checking pdqselect v0.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rstar v0.2.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking geo-types v0.4.3 [INFO] [stderr] Checking addr2line v0.12.0 [INFO] [stderr] Checking backtrace v0.3.48 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking geo v0.12.2 [INFO] [stderr] Checking serde v1.0.110 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking rustBCA v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `float_cmp` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use float_cmp::*; [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `float_cmp` [INFO] [stderr] [INFO] [stderr] warning: unused import: `polygon` [INFO] [stderr] --> src/main.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use geo::{point, polygon, Polygon, LineString, Closest}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/material.rs:229:16 [INFO] [stderr] | [INFO] [stderr] 229 | if (costheta < 0.) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:299:5 [INFO] [stderr] | [INFO] [stderr] 299 | 'particle_loop: while particle_index > 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_labels)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:309:9 [INFO] [stderr] | [INFO] [stderr] 309 | 'trajectory_loop: while !particle_1.stopped & !particle_1.left { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:322:13 [INFO] [stderr] | [INFO] [stderr] 322 | 'collision_loop: for k in 0..options.weak_collision_order + 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `float_cmp` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use float_cmp::*; [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `float_cmp` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | assert!(approx_eq!(f64, particle.dir.x, 0., epsilon = 1e-9), "particle.dir.x: {} Should be ~0.", particle.dir.x); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | assert!(approx_eq!(f64, particle.dir.y, 1., epsilon = 1e-9), "particle.dir.y: {} Should be ~1.", particle.dir.y); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | assert!(approx_eq!(f64, particle.dir.x, cosx, epsilon = 1e-9), "particle.dir.x: {} Should be ~{}", particle.dir.x, cosx); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | assert!(approx_eq!(f64, particle.dir.y, cosy, epsilon = 1e-9), "particle.dir.y: {} Should be ~{}", particle.dir.y, cosy); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | assert!(approx_eq!(f64, particle.dir.x, 1., epsilon = 1e-9), "particle.dir.x: {} Should be ~1.", particle.dir.x); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:36:13 [INFO] [stderr] | [INFO] [stderr] 36 | assert!(approx_eq!(f64, particle.dir.y, 0., epsilon = 1e-9), "particle.dir.y: {} Should be ~0.", particle.dir.y); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `approx_eq` in this scope [INFO] [stderr] --> src/tests.rs:39:13 [INFO] [stderr] | [INFO] [stderr] 39 | assert!(approx_eq!(f64, particle.dir.x.powf(2.) + particle.dir.y.powf(2.) + particle.dir.z.powf(2.), 1.), "Particle direction not normalized."); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rotate_particle` in this scope [INFO] [stderr] --> src/tests.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 5 | fn test_rotate_particle() { [INFO] [stderr] | ------------------------- similarly named constant `test_rotate_particle` defined here [INFO] [stderr] ... [INFO] [stderr] 23 | rotate_particle(&mut particle, psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a constant with a similar name exists [INFO] [stderr] | [INFO] [stderr] 23 | test_rotate_particle(&mut particle, psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use crate::particle::rotate_particle; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rotate_particle` in this scope [INFO] [stderr] --> src/tests.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 5 | fn test_rotate_particle() { [INFO] [stderr] | ------------------------- similarly named constant `test_rotate_particle` defined here [INFO] [stderr] ... [INFO] [stderr] 28 | rotate_particle(&mut particle, -psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a constant with a similar name exists [INFO] [stderr] | [INFO] [stderr] 28 | test_rotate_particle(&mut particle, -psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use crate::particle::rotate_particle; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `rotate_particle` in this scope [INFO] [stderr] --> src/tests.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 5 | fn test_rotate_particle() { [INFO] [stderr] | ------------------------- similarly named constant `test_rotate_particle` defined here [INFO] [stderr] ... [INFO] [stderr] 34 | rotate_particle(&mut particle, psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a constant with a similar name exists [INFO] [stderr] | [INFO] [stderr] 34 | test_rotate_particle(&mut particle, psi, phi); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use crate::particle::rotate_particle; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `particle_advance` in this scope [INFO] [stderr] --> src/tests.rs:61:29 [INFO] [stderr] | [INFO] [stderr] 44 | fn test_particle_advance() { [INFO] [stderr] | -------------------------- similarly named constant `test_particle_advance` defined here [INFO] [stderr] ... [INFO] [stderr] 61 | let distance_traveled = particle_advance(&mut particle, mfp, asymptotic_deflection); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a constant with a similar name exists [INFO] [stderr] | [INFO] [stderr] 61 | let distance_traveled = test_particle_advance(&mut particle, mfp, asymptotic_deflection); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use crate::particle::particle_advance; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `polygon` [INFO] [stderr] --> src/main.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use geo::{point, polygon, Polygon, LineString, Closest}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/material.rs:229:16 [INFO] [stderr] | [INFO] [stderr] 229 | if (costheta < 0.) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:299:5 [INFO] [stderr] | [INFO] [stderr] 299 | 'particle_loop: while particle_index > 0 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_labels)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:309:9 [INFO] [stderr] | [INFO] [stderr] 309 | 'trajectory_loop: while !particle_1.stopped & !particle_1.left { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/main.rs:322:13 [INFO] [stderr] | [INFO] [stderr] 322 | 'collision_loop: for k in 0..options.weak_collision_order + 1 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error; 5 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `rustBCA`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 12 previous errors; 5 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: could not compile `rustBCA`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "dbe5c86960b1c81d3a2f7d0759576b2ffef7e3e03a7698363b51e237491c8bea"` [INFO] running `"docker" "rm" "-f" "dbe5c86960b1c81d3a2f7d0759576b2ffef7e3e03a7698363b51e237491c8bea"` [INFO] [stdout] dbe5c86960b1c81d3a2f7d0759576b2ffef7e3e03a7698363b51e237491c8bea