[INFO] cloning repository https://github.com/vickky06/Rexec [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vickky06/Rexec" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FRexec", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FRexec'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5e10aea62e7314c1939718bc8380966df4997fa [INFO] building vickky06/Rexec against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvickky06%2FRexec" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vickky06/Rexec [INFO] finished tweaking git repo https://github.com/vickky06/Rexec [INFO] tweaked toml for git repo https://github.com/vickky06/Rexec written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vickky06/Rexec on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vickky06/Rexec 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tonic-reflection v0.11.0 [INFO] [stderr] Downloaded cc v1.0.106 [INFO] [stderr] Downloaded prost-build v0.12.6 [INFO] [stderr] Downloaded ctrlc v3.4.7 [INFO] [stderr] Downloaded proto v0.1.2 [INFO] [stderr] Downloaded toml_write v0.1.1 [INFO] [stderr] Downloaded bollard-stubs v1.47.1-rc.27.3.1 [INFO] [stderr] Downloaded prettyplease v0.2.32 [INFO] [stderr] Downloaded tonic-build v0.11.0 [INFO] [stderr] Downloaded toml v0.8.22 [INFO] [stderr] Downloaded tree-sitter-java v0.20.2 [INFO] [stderr] Downloaded tree-sitter-javascript v0.20.4 [INFO] [stderr] Downloaded serde_with v3.12.0 [INFO] [stderr] Downloaded bollard v0.18.1 [INFO] [stderr] Downloaded tree-sitter-python v0.20.4 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1639b107efc6e2de24850ff0ff39a03cc1c737d518b819d211738527e015d93a [INFO] running `Command { std: "docker" "start" "-a" "1639b107efc6e2de24850ff0ff39a03cc1c737d518b819d211738527e015d93a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1639b107efc6e2de24850ff0ff39a03cc1c737d518b819d211738527e015d93a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1639b107efc6e2de24850ff0ff39a03cc1c737d518b819d211738527e015d93a", kill_on_drop: false }` [INFO] [stdout] 1639b107efc6e2de24850ff0ff39a03cc1c737d518b819d211738527e015d93a [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f3ea4c6320368804e7aac41a54dc0b9654a08274edef55caf5cd297ce1c9c52 [INFO] running `Command { std: "docker" "start" "-a" "5f3ea4c6320368804e7aac41a54dc0b9654a08274edef55caf5cd297ce1c9c52", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cc v1.0.106 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tree-sitter-javascript v0.20.4 [INFO] [stderr] Compiling tree-sitter-python v0.20.4 [INFO] [stderr] Compiling tree-sitter-java v0.20.2 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling toml_write v0.1.1 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling winnow v0.7.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling xattr v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tar v0.4.44 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling proto v0.1.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling serde_with v3.12.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling toml_edit v0.22.26 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Compiling bollard-stubs v1.47.1-rc.27.3.1 [INFO] [stderr] Compiling dsa-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling toml v0.8.22 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling hyperlocal v0.9.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling bollard v0.18.1 [INFO] [stderr] Compiling tonic v0.11.0 [INFO] [stderr] Compiling tonic-reflection v0.11.0 [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/services/websocket/websocket_server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [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 variable: `session_id` [INFO] [stdout] --> src/services/websocket/websocket_server.rs:49:45 [INFO] [stdout] | [INFO] [stdout] 49 | ... let session_id = message.session_id.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_connections` is never read [INFO] [stdout] --> src/models/config_models.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct WebSocketPoolConfig { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 52 | pub max_connections: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebSocketPoolConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `websocket_pool_config` is never read [INFO] [stdout] --> src/models/config_models.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | pub websocket_pool_config: WebSocketPoolConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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: field `language` is never read [INFO] [stdout] --> src/models/in_memory_session_cache_model.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub session_id: String, [INFO] [stdout] 9 | pub language: DockerSupportedLanguage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` 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: variants `NotFound` and `InternalError` are never constructed [INFO] [stdout] --> src/models/in_memory_session_cache_model.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum SessionErrorType { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 14 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | InvalidInput, [INFO] [stdout] 16 | InternalError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionErrorType` 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: enum `CodeType` is never used [INFO] [stdout] --> src/models/websocket_message_model.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CleanupType` is never used [INFO] [stdout] --> src/models/websocket_sessionpool_models.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CleanupType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `connection_size`, `pool`, and `activity_tracker` are never read [INFO] [stdout] --> src/models/websocket_sessionpool_models.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ConnectionManager { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 28 | pub connection_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub pool: ConnectionPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | pub activity_tracker: Mutex>>, // Min-heap by last_active [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/services/all_session_services/session_service.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl SessionErrorType { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 111 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `message` is never used [INFO] [stdout] --> src/services/all_session_services/session_service.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl SessionError { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn message(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_session_management_service` and `set_websocket_connection_manager` are never used [INFO] [stdout] --> src/services/helper_services/config_service.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Config { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_session_management_service(&mut self, sms: &'static SessionManagementService) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn set_websocket_connection_manager(&mut self, wbcm: &'static ConnectionManager) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_grpc_ui_address` is never used [INFO] [stdout] --> src/services/helper_services/ports_service.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl PortsService { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_grpc_ui_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl CodeType { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl Code { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 64 | fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 77 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 78 | fn new(line: usize, ch: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Patch { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 84 | fn new(start: Position, end: Position, text: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `websocket_connection_pool_add` is never used [INFO] [stdout] --> src/services/websocket/websocket_server.rs:203:10 [INFO] [stdout] | [INFO] [stdout] 203 | async fn websocket_connection_pool_add(socket_addr: SocketAddr, session_id_value: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl ActivityTracker { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(last_active: u64, key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_connection`, `get_connection`, `remove_connection`, and `cleanup` are never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ConnectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add_connection(&self, key: &str, value: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn get_connection(self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn remove_connection(&self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | async fn cleanup(&self, cleanup_type: CleanupType) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `was_last_active`, `set_last_active`, and `upsert_value` are never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl Status { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 106 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn was_last_active(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn set_last_active(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn upsert_value(&mut self, value: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_timestamp` is never used [INFO] [stdout] --> src/utils/helper_utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_current_timestamp() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/services/all_session_services/session_cache_service.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 28 | session_id: &str, [INFO] [stdout] 29 | ) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | ) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/services/all_session_services/session_cache_service.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 35 | session_id: &str, [INFO] [stdout] 36 | ) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | ) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | self.cleanup(CleanupType::Full); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | / self.cleanup(CleanupType::Search { [INFO] [stdout] 71 | | key: key.to_string(), [INFO] [stdout] 72 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 39s [INFO] running `Command { std: "docker" "inspect" "5f3ea4c6320368804e7aac41a54dc0b9654a08274edef55caf5cd297ce1c9c52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f3ea4c6320368804e7aac41a54dc0b9654a08274edef55caf5cd297ce1c9c52", kill_on_drop: false }` [INFO] [stdout] 5f3ea4c6320368804e7aac41a54dc0b9654a08274edef55caf5cd297ce1c9c52 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6df83231dd168d5218bb6212463e808c8bddd560502fdb81216110396e3ebdce [INFO] running `Command { std: "docker" "start" "-a" "6df83231dd168d5218bb6212463e808c8bddd560502fdb81216110396e3ebdce", kill_on_drop: false }` [INFO] [stderr] Compiling dsa-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/services/websocket/websocket_server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [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 variable: `session_id` [INFO] [stdout] --> src/services/websocket/websocket_server.rs:49:45 [INFO] [stdout] | [INFO] [stdout] 49 | ... let session_id = message.session_id.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_connections` is never read [INFO] [stdout] --> src/models/config_models.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct WebSocketPoolConfig { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 52 | pub max_connections: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebSocketPoolConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `websocket_pool_config` is never read [INFO] [stdout] --> src/models/config_models.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 62 | pub websocket_pool_config: WebSocketPoolConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` 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: field `language` is never read [INFO] [stdout] --> src/models/in_memory_session_cache_model.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Session { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 8 | pub session_id: String, [INFO] [stdout] 9 | pub language: DockerSupportedLanguage, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Session` 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: variants `NotFound` and `InternalError` are never constructed [INFO] [stdout] --> src/models/in_memory_session_cache_model.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum SessionErrorType { [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 14 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | InvalidInput, [INFO] [stdout] 16 | InternalError, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionErrorType` 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: enum `CodeType` is never used [INFO] [stdout] --> src/models/websocket_message_model.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CodeType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CleanupType` is never used [INFO] [stdout] --> src/models/websocket_sessionpool_models.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum CleanupType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `connection_size`, `pool`, and `activity_tracker` are never read [INFO] [stdout] --> src/models/websocket_sessionpool_models.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct ConnectionManager { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 28 | pub connection_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | pub pool: ConnectionPool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | pub activity_tracker: Mutex>>, // Min-heap by last_active [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/services/all_session_services/session_service.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl SessionErrorType { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 111 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `message` is never used [INFO] [stdout] --> src/services/all_session_services/session_service.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl SessionError { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn message(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_session_management_service` and `set_websocket_connection_manager` are never used [INFO] [stdout] --> src/services/helper_services/config_service.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Config { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn set_session_management_service(&mut self, sms: &'static SessionManagementService) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn set_websocket_connection_manager(&mut self, wbcm: &'static ConnectionManager) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_grpc_ui_address` is never used [INFO] [stdout] --> src/services/helper_services/ports_service.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl PortsService { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_grpc_ui_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl CodeType { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 54 | fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl Code { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 64 | fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 77 | impl Position { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 78 | fn new(line: usize, ch: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_message_service.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Patch { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 84 | fn new(start: Position, end: Position, text: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `websocket_connection_pool_add` is never used [INFO] [stdout] --> src/services/websocket/websocket_server.rs:203:10 [INFO] [stdout] | [INFO] [stdout] 203 | async fn websocket_connection_pool_add(socket_addr: SocketAddr, session_id_value: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl ActivityTracker { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new(last_active: u64, key: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_connection`, `get_connection`, `remove_connection`, and `cleanup` are never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl ConnectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn add_connection(&self, key: &str, value: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn get_connection(self, key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn remove_connection(&self, key: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | async fn cleanup(&self, cleanup_type: CleanupType) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `was_last_active`, `set_last_active`, and `upsert_value` are never used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl Status { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 106 | pub fn new(value: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn was_last_active(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn set_last_active(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn upsert_value(&mut self, value: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_timestamp` is never used [INFO] [stdout] --> src/utils/helper_utils.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_current_timestamp() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/services/all_session_services/session_cache_service.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 28 | session_id: &str, [INFO] [stdout] 29 | ) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 29 | ) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/services/all_session_services/session_cache_service.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 35 | session_id: &str, [INFO] [stdout] 36 | ) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 36 | ) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | self.cleanup(CleanupType::Full); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures_util::Future` that must be used [INFO] [stdout] --> src/services/websocket/websocket_sessionpool_service.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | / self.cleanup(CleanupType::Search { [INFO] [stdout] 71 | | key: key.to_string(), [INFO] [stdout] 72 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.43s [INFO] running `Command { std: "docker" "inspect" "6df83231dd168d5218bb6212463e808c8bddd560502fdb81216110396e3ebdce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6df83231dd168d5218bb6212463e808c8bddd560502fdb81216110396e3ebdce", kill_on_drop: false }` [INFO] [stdout] 6df83231dd168d5218bb6212463e808c8bddd560502fdb81216110396e3ebdce