[INFO] cloning repository https://github.com/JunfXiao/trnsys-odbc [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-odbc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys-odbc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys-odbc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0cf83fbea200a92b54a0b967c212077af51c885d [INFO] checking JunfXiao/trnsys-odbc against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunfXiao%2Ftrnsys-odbc" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JunfXiao/trnsys-odbc on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JunfXiao/trnsys-odbc [INFO] finished tweaking git repo https://github.com/JunfXiao/trnsys-odbc [INFO] tweaked toml for git repo https://github.com/JunfXiao/trnsys-odbc written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JunfXiao/trnsys-odbc 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2402c95dcd795bda06762afcf8b9e19a27ab0a2939d23cf3fb1ba24ef3ee726a [INFO] running `Command { std: "docker" "start" "-a" "2402c95dcd795bda06762afcf8b9e19a27ab0a2939d23cf3fb1ba24ef3ee726a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2402c95dcd795bda06762afcf8b9e19a27ab0a2939d23cf3fb1ba24ef3ee726a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2402c95dcd795bda06762afcf8b9e19a27ab0a2939d23cf3fb1ba24ef3ee726a", kill_on_drop: false }` [INFO] [stdout] 2402c95dcd795bda06762afcf8b9e19a27ab0a2939d23cf3fb1ba24ef3ee726a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 507220514f0320d7618489b7d064fa0622fa31fcebe9ea9fa8e9fd6fcfdafecd [INFO] running `Command { std: "docker" "start" "-a" "507220514f0320d7618489b7d064fa0622fa31fcebe9ea9fa8e9fd6fcfdafecd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling serde v1.0.211 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling odbc-sys v0.24.0 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Checking widestring v1.1.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking path-clean v1.0.1 [INFO] [stderr] Checking include_dir v0.7.4 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling winres v0.1.12 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling tracing-test-macro v0.2.5 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling trnsys_odbc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking odbc-api v10.0.0 [INFO] [stderr] Checking tracing-test v0.2.5 [INFO] [stdout] warning: unused import: `odbc_api::buffers::BufferDesc` [INFO] [stdout] --> src/database/odbc.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use odbc_api::buffers::BufferDesc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt::format` [INFO] [stdout] --> src/trnsys_type.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `odbc_api::buffers::BufferDesc` [INFO] [stdout] --> src/database/odbc.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use odbc_api::buffers::BufferDesc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing_subscriber::fmt::format` [INFO] [stdout] --> src/trnsys_type.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing_subscriber::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/database/datatype.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | ColDataType::Number { decimal } => BufferDesc::F64 { nullable: true }, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `decimal: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/database/buffer.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | for (i, data) in self.input_data.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/buffer.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut lock = self.meta_cols.clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/path.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut file_path = std::path::absolute(file_path)?; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn first_call_of_simulation(&mut 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:59:41 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn simulation_starts(&mut 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:110:39 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn simulation_ends(&mut 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:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn iterate(&mut 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:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | .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: methods `insert_data` and `query_data` are never used [INFO] [stdout] --> src/database/odbc.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait OdbcProvider<'c>: Send + Sync + SqlDialect { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 179 | fn insert_data( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | fn query_data( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DateTime` is never constructed [INFO] [stdout] --> src/database/datatype.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ColDataType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColDataType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_buffer_desc` is never used [INFO] [stdout] --> src/database/datatype.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ColDef { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn to_buffer_desc(&self) -> BufferDesc { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DataTypeQuery` is never used [INFO] [stdout] --> src/database/datatype.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) trait DataTypeQuery { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_inputs` and `primary_keys` are never read [INFO] [stdout] --> src/parameter.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Parameters { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | pub num_inputs: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub primary_keys: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/storage/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait StoreProvider: Sync + Send { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] 8 | /// Returns a mutable reference to the history of stored values. [INFO] [stdout] 9 | fn get_history_mut(&mut self) -> &mut Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn get_history(&self) -> &Vec>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn set_dyn(&mut self, value: Option); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn get(&self) -> Option<&T>; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_mut(&mut self) -> Option<&mut T>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_dyn_mut_or_default(&mut self, default: T) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn has_value(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn get_last_value(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn tick(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/memory_storage_provider.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 10 | / impl MemoryStorageProvider [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | T: Clone + Send + Sync, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 13 | { [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/database/datatype.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | ColDataType::Number { decimal } => BufferDesc::F64 { nullable: true }, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `decimal: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `trnsys::error::TrnSysError` to `trnsys::error::TrnSysError` [INFO] [stdout] --> src/database/odbc.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(TrnSysError::GeneralError( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 109 | | "No COLUMN_NAME column found in columns_cursor".to_string(), [INFO] [stdout] 110 | | ) [INFO] [stdout] 111 | | .into()); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/database/buffer.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | for (i, data) in self.input_data.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/buffer.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut lock = self.meta_cols.clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/path.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut file_path = std::path::absolute(file_path)?; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trnsys_odbc` (lib) due to 1 previous error; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/trnsys_type.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn first_call_of_simulation(&mut 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:59:41 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn simulation_starts(&mut 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:110:39 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn simulation_ends(&mut 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:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn iterate(&mut 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:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | .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: variant `DateTime` is never constructed [INFO] [stdout] --> src/database/datatype.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ColDataType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ColDataType` 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: method `to_buffer_desc` is never used [INFO] [stdout] --> src/database/datatype.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl ColDef { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn to_buffer_desc(&self) -> BufferDesc { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_time` and `is_binary` are never used [INFO] [stdout] --> src/database/datatype.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) trait DataTypeQuery { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_time(&self) -> bool; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 58 | fn is_binary(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `num_inputs` and `primary_keys` are never read [INFO] [stdout] --> src/parameter.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Parameters { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | pub num_inputs: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub primary_keys: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parameters` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/storage/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait StoreProvider: Sync + Send { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] 8 | /// Returns a mutable reference to the history of stored values. [INFO] [stdout] 9 | fn get_history_mut(&mut self) -> &mut Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn get_history(&self) -> &Vec>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn set_dyn(&mut self, value: Option); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn get(&self) -> Option<&T>; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_mut(&mut self) -> Option<&mut T>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_dyn_mut_or_default(&mut self, default: T) -> &mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn has_value(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn get_last_value(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn tick(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/memory_storage_provider.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 10 | / impl MemoryStorageProvider [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | T: Clone + Send + Sync, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 13 | { [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `trnsys::error::TrnSysError` to `trnsys::error::TrnSysError` [INFO] [stdout] --> src/database/odbc.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(TrnSysError::GeneralError( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 109 | | "No COLUMN_NAME column found in columns_cursor".to_string(), [INFO] [stdout] 110 | | ) [INFO] [stdout] 111 | | .into()); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trnsys_odbc` (lib test) due to 1 previous error; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "507220514f0320d7618489b7d064fa0622fa31fcebe9ea9fa8e9fd6fcfdafecd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "507220514f0320d7618489b7d064fa0622fa31fcebe9ea9fa8e9fd6fcfdafecd", kill_on_drop: false }` [INFO] [stdout] 507220514f0320d7618489b7d064fa0622fa31fcebe9ea9fa8e9fd6fcfdafecd