[INFO] cloning repository https://github.com/OtterCode/population-sim [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OtterCode/population-sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOtterCode%2Fpopulation-sim"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOtterCode%2Fpopulation-sim'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 8908d5e208f712de10ce51ada4819450824d4773 [INFO] checking OtterCode/population-sim against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOtterCode%2Fpopulation-sim" "/workspace/builds/worker-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/OtterCode/population-sim on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/OtterCode/population-sim [INFO] finished tweaking git repo https://github.com/OtterCode/population-sim [INFO] tweaked toml for git repo https://github.com/OtterCode/population-sim written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/OtterCode/population-sim already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5dcb9e357de5d602aaf2f617d67f4687a8f49994b9afadc0f0e7aae9a0d72796 [INFO] running `"docker" "start" "-a" "5dcb9e357de5d602aaf2f617d67f4687a8f49994b9afadc0f0e7aae9a0d72796"` [INFO] [stderr] Compiling webview-sys v0.1.0 [INFO] [stderr] Checking yaml-rust v0.4.0 [INFO] [stderr] Compiling syn v0.13.7 [INFO] [stderr] Checking serde_yaml v0.7.4 [INFO] [stderr] Checking web-view v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.53 [INFO] [stderr] Checking pop_sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: `#[test]` attribute is only allowed on non associated functions [INFO] [stderr] --> src/skew_normal.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | / fn domain (extent: f32, resolution: u16) -> Vec { [INFO] [stderr] 55 | | let res = resolution as f32; [INFO] [stderr] 56 | | let length = (extent * 2.0 * res + 1.0) as usize; [INFO] [stderr] 57 | | [INFO] [stderr] 58 | | (0..length).map(|x| ((x as f32)/res) - extent.abs() ).collect() [INFO] [stderr] 59 | | [INFO] [stderr] 60 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: could not compile `pop_sim`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/population/cohort/heligman_pollard.rs:16:32 [INFO] [stderr] | [INFO] [stderr] 16 | fn cause(&self) -> Option<&Error> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `consequences` [INFO] [stderr] --> src/population/attributes.rs:13:28 [INFO] [stderr] | [INFO] [stderr] 13 | fn advance_year(&self, consequences: &HashMap<&str, Consequence>) -> (AttributeData, Consequence) { [INFO] [stderr] | ^^^^^^^^^^^^ help: consider prefixing with an underscore: `_consequences` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `advance_year` [INFO] [stderr] --> src/population/attributes.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | fn advance_year(&self, consequences: &HashMap<&str, Consequence>) -> (AttributeData, Consequence) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Consequence` [INFO] [stderr] --> src/population/attributes.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | struct Consequence { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "5dcb9e357de5d602aaf2f617d67f4687a8f49994b9afadc0f0e7aae9a0d72796"` [INFO] running `"docker" "rm" "-f" "5dcb9e357de5d602aaf2f617d67f4687a8f49994b9afadc0f0e7aae9a0d72796"` [INFO] [stdout] 5dcb9e357de5d602aaf2f617d67f4687a8f49994b9afadc0f0e7aae9a0d72796