[INFO] cloning repository https://github.com/OtterCode/population-sim [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOtterCode%2Fpopulation-sim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8908d5e208f712de10ce51ada4819450824d4773 [INFO] checking OtterCode/population-sim against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOtterCode%2Fpopulation-sim" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/OtterCode/population-sim on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/OtterCode/population-sim 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded yaml-rust v0.4.0 [INFO] [stderr] Downloaded serde v1.0.53 [INFO] [stderr] Downloaded web-view v0.2.1 [INFO] [stderr] Downloaded serde_yaml v0.7.4 [INFO] [stderr] Downloaded webview-sys v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af563bf6f96f6c0afe4da5aa1ea5dd0ee3cbdc24878d89bce6bde1045dcdebbf [INFO] running `Command { std: "docker" "start" "-a" "af563bf6f96f6c0afe4da5aa1ea5dd0ee3cbdc24878d89bce6bde1045dcdebbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af563bf6f96f6c0afe4da5aa1ea5dd0ee3cbdc24878d89bce6bde1045dcdebbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af563bf6f96f6c0afe4da5aa1ea5dd0ee3cbdc24878d89bce6bde1045dcdebbf", kill_on_drop: false }` [INFO] [stdout] af563bf6f96f6c0afe4da5aa1ea5dd0ee3cbdc24878d89bce6bde1045dcdebbf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9444d2f72c711abe4f928e6927f9356e94bdb0ecb78d6c575ca397ffca84d95 [INFO] running `Command { std: "docker" "start" "-a" "c9444d2f72c711abe4f928e6927f9356e94bdb0ecb78d6c575ca397ffca84d95", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling pkg-config v0.3.11 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking serde v1.0.53 [INFO] [stderr] Checking urlencoding v1.0.0 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.3.8 [INFO] [stderr] Checking yaml-rust v0.4.0 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling syn v0.13.7 [INFO] [stderr] Compiling webview-sys v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.53 [INFO] [stderr] Checking serde_yaml v0.7.4 [INFO] [stderr] Checking web-view v0.2.1 [INFO] [stderr] Checking pop_sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/skew_normal.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 53 | #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/skew_normal.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/skew_normal.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 68 | #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/population/cohort/heligman_pollard.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/population/cohort/heligman_pollard.rs:16:32 [INFO] [stdout] | [INFO] [stdout] 16 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consequences` [INFO] [stdout] --> src/population/attributes.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | fn advance_year(&self, consequences: &HashMap<&str, Consequence>) -> (AttributeData, Consequence) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consequences` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `advance_year` is never used [INFO] [stdout] --> src/population/attributes.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl AttributeData { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 13 | fn advance_year(&self, consequences: &HashMap<&str, Consequence>) -> (AttributeData, Consequence) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Consequence` is never constructed [INFO] [stdout] --> src/population/attributes.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Consequence { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consequences` [INFO] [stdout] --> src/population/attributes.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | fn advance_year(&self, consequences: &HashMap<&str, Consequence>) -> (AttributeData, Consequence) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consequences` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pop_sim` (lib test) due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "c9444d2f72c711abe4f928e6927f9356e94bdb0ecb78d6c575ca397ffca84d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9444d2f72c711abe4f928e6927f9356e94bdb0ecb78d6c575ca397ffca84d95", kill_on_drop: false }` [INFO] [stdout] c9444d2f72c711abe4f928e6927f9356e94bdb0ecb78d6c575ca397ffca84d95