[INFO] cloning repository https://github.com/JunfXiao/trnsys_rust_template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JunfXiao/trnsys_rust_template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys_rust_template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys_rust_template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d215c83d11fe22e6a5b9d5cecd294b388b1b53e8 [INFO] checking JunfXiao/trnsys_rust_template against try#6284d7b4bd27983dba388146648ab844ca7d032f for pr-152971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys_rust_template" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JunfXiao/trnsys_rust_template [INFO] finished tweaking git repo https://github.com/JunfXiao/trnsys_rust_template [INFO] tweaked toml for git repo https://github.com/JunfXiao/trnsys_rust_template written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JunfXiao/trnsys_rust_template on toolchain 6284d7b4bd27983dba388146648ab844ca7d032f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JunfXiao/trnsys_rust_template 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" "+6284d7b4bd27983dba388146648ab844ca7d032f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `trnsys_rust_template` which is deprecated [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time-macros v0.2.19 [INFO] [stderr] Downloaded tracing-serde v0.2.0 [INFO] [stderr] Downloaded serde_derive v1.0.211 [INFO] [stderr] Downloaded time v0.3.37 [INFO] [stderr] Downloaded serde v1.0.211 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f393a7fcb2329df438a5c73b0fa200770c96b9a39be3df718cccae250ec763b [INFO] running `Command { std: "docker" "start" "-a" "8f393a7fcb2329df438a5c73b0fa200770c96b9a39be3df718cccae250ec763b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f393a7fcb2329df438a5c73b0fa200770c96b9a39be3df718cccae250ec763b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f393a7fcb2329df438a5c73b0fa200770c96b9a39be3df718cccae250ec763b", kill_on_drop: false }` [INFO] [stdout] 8f393a7fcb2329df438a5c73b0fa200770c96b9a39be3df718cccae250ec763b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 233ac0e8ba8ea4ce2cd1b9cb3f9dec086c7bd92c2a4c971cd1ef952c325b0386 [INFO] running `Command { std: "docker" "start" "-a" "233ac0e8ba8ea4ce2cd1b9cb3f9dec086c7bd92c2a4c971cd1ef952c325b0386", kill_on_drop: false }` [INFO] [stderr] warning: `edition` is set on library `trnsys_rust_template` which is deprecated [INFO] [stderr] Compiling serde v1.0.211 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling trnsys_rust_template v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stdout] error[E0603]: module `fpu_guard` is private [INFO] [stdout] --> src/trnsys/mod.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub use fpu_guard::fpu_guard::FpuGuard; [INFO] [stdout] | ^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `fpu_guard` is defined here [INFO] [stdout] --> src/trnsys/fpu_guard.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | mod fpu_guard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `fpu_guard` is private [INFO] [stdout] --> src/trnsys/mod.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | pub use fpu_guard::fpu_guard::FpuGuard; [INFO] [stdout] | ^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `fpu_guard` is defined here [INFO] [stdout] --> src/trnsys/fpu_guard.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | mod fpu_guard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TrnSysError` [INFO] [stdout] --> src/lib.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::trnsys::error::{TrnSysError, TrnSysErrorHandler}; [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: `TrnSysError` [INFO] [stdout] --> src/lib.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::trnsys::error::{TrnSysError, TrnSysErrorHandler}; [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 imports: `Context` and `Error` [INFO] [stdout] --> src/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/lib.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Context` and `Error` [INFO] [stdout] --> src/lib.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::{Context, Error, Result}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/lib.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{debug, error, info}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::trnsys::iteration_mode::IterationMode` [INFO] [stdout] --> src/trnsys_type.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::trnsys::iteration_mode::IterationMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::trnsys::iteration_mode::IterationMode` [INFO] [stdout] --> src/trnsys_type.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::trnsys::iteration_mode::IterationMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn simulation_starts(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn simulation_ends(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:58:37 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn simulation_starts(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/trnsys_type.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let time = get_simulation_time(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestep` [INFO] [stdout] --> src/trnsys_type.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let timestep = get_simulation_time_step(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_unit` [INFO] [stdout] --> src/trnsys_type.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let current_unit = get_current_unit(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/trnsys_type.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let current_type = get_current_type(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn end_of_timestep(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn simulation_ends(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trnsys_type.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | .map(|i| TrnSysValue { value: 0. }) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/trnsys_type.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let time = get_simulation_time(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timestep` [INFO] [stdout] --> src/trnsys_type.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let timestep = get_simulation_time_step(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timestep` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_unit` [INFO] [stdout] --> src/trnsys_type.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let current_unit = get_current_unit(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/trnsys_type.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let current_type = get_current_type(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn end_of_timestep(&self, state: &mut TrnSysState) -> Result<(), TrnSysError> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/trnsys_type.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | .map(|i| TrnSysValue { value: 0. }) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trnsys_rust_template` (lib) due to 1 previous error; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `trnsys_rust_template` (lib test) due to 1 previous error; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "233ac0e8ba8ea4ce2cd1b9cb3f9dec086c7bd92c2a4c971cd1ef952c325b0386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "233ac0e8ba8ea4ce2cd1b9cb3f9dec086c7bd92c2a4c971cd1ef952c325b0386", kill_on_drop: false }` [INFO] [stdout] 233ac0e8ba8ea4ce2cd1b9cb3f9dec086c7bd92c2a4c971cd1ef952c325b0386