[INFO] cloning repository https://github.com/SegaraRai/upsclr-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SegaraRai/upsclr-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSegaraRai%2Fupsclr-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSegaraRai%2Fupsclr-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5b3c031c736ab3715f8be8d9defc895d8f93ff1 [INFO] building SegaraRai/upsclr-server against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSegaraRai%2Fupsclr-server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SegaraRai/upsclr-server [INFO] finished tweaking git repo https://github.com/SegaraRai/upsclr-server [INFO] tweaked toml for git repo https://github.com/SegaraRai/upsclr-server written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SegaraRai/upsclr-server on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SegaraRai/upsclr-server 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libloading v0.8.7 [INFO] [stderr] Downloaded clap v4.5.38 [INFO] [stderr] Downloaded clap_builder v4.5.38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27b034c3388abb8fe1396452baaa17715f69841661de7d333c4c13d639f5e6ae [INFO] running `Command { std: "docker" "start" "-a" "27b034c3388abb8fe1396452baaa17715f69841661de7d333c4c13d639f5e6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27b034c3388abb8fe1396452baaa17715f69841661de7d333c4c13d639f5e6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27b034c3388abb8fe1396452baaa17715f69841661de7d333c4c13d639f5e6ae", kill_on_drop: false }` [INFO] [stdout] 27b034c3388abb8fe1396452baaa17715f69841661de7d333c4c13d639f5e6ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8b3d7d66a9a2c88304f857c8c3cba547862cccbf7138341665d1c2aae3e9698 [INFO] running `Command { std: "docker" "start" "-a" "c8b3d7d66a9a2c88304f857c8c3cba547862cccbf7138341665d1c2aae3e9698", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling profiling-procmacros v1.0.16 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling ravif v0.11.12 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling axum-extra v0.10.1 [INFO] [stderr] Compiling upsclr-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::load_plugin_from_path` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 179 | match Self::load_plugin_from_path(&path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn new(plugins_dir_path_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | let lib = Library::new(path) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | unsafe fn load_plugin_from_path(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 235 | get_symbol!(lib, b"upsclr_plugin_initialize\0")?; [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 237 | get_symbol!(lib, b"upsclr_plugin_shutdown\0")?; [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 239 | get_symbol!(lib, b"upsclr_plugin_get_info\0")?; [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 241 | get_symbol!(lib, b"upsclr_plugin_count_engines\0")?; [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 244 | > = get_symbol!(lib, b"upsclr_plugin_get_engine_info\0")?; [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 252 | > = get_symbol!(lib, b"upsclr_plugin_validate_engine_config\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 255 | > = get_symbol!(lib, b"upsclr_plugin_free_validation_result\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 262 | > = get_symbol!(lib, b"upsclr_plugin_create_engine_instance\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 265 | > = get_symbol!(lib, b"upsclr_plugin_destroy_engine_instance\0")?; [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 271 | > = get_symbol!(lib, b"upsclr_plugin_preload_upscale\0")?; [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 286 | > = get_symbol!(lib, b"upsclr_plugin_upscale\0")?; [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:289:27 [INFO] [stdout] | [INFO] [stdout] 289 | let init_result = initialize_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | let c_plugin_info_ptr = get_info_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | let c_plugin_info = &*c_plugin_info_ptr; // Unsafe dereference. Valid if plugin API is correct. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:315:19 [INFO] [stdout] | [INFO] [stdout] 315 | name: Self::c_str_to_rust_string(c_plugin_info.name) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:317:22 [INFO] [stdout] | [INFO] [stdout] 317 | version: Self::c_str_to_rust_string(c_plugin_info.version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | description: Self::c_str_to_rust_string(c_plugin_info.description) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:325:27 [INFO] [stdout] | [INFO] [stdout] 325 | let num_engines = count_engines_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:327:37 [INFO] [stdout] | [INFO] [stdout] 327 | let c_engine_info_ptr = get_engine_info_fn(i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:334:34 [INFO] [stdout] | [INFO] [stdout] 334 | let c_engine_info = &*c_engine_info_ptr; // Unsafe dereference. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | name: Self::c_str_to_rust_string(c_engine_info.name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:339:30 [INFO] [stdout] | [INFO] [stdout] 339 | description: Self::c_str_to_rust_string(c_engine_info.description).map_err( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:347:26 [INFO] [stdout] | [INFO] [stdout] 347 | version: Self::c_str_to_rust_string(c_engine_info.version).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &Self::c_str_to_rust_string(c_engine_info.config_json_schema).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | CStr::from_ptr(c_str_ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | / pub(crate) unsafe fn c_str_to_rust_string( [INFO] [stdout] 404 | | c_str_ptr: *const plugin_ffi::c_char8_t, [INFO] [stdout] 405 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::load_plugin_from_path` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:515:19 [INFO] [stdout] | [INFO] [stdout] 515 | match Self::load_plugin_from_path(&plugin_state.path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:478:5 [INFO] [stdout] | [INFO] [stdout] 478 | / pub unsafe fn import_state( [INFO] [stdout] 479 | | &mut self, [INFO] [stdout] 480 | | state: PluginManagerState, [INFO] [stdout] 481 | | ) -> Result, AppError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/plugin_ffi.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum UpsclrErrorCode { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 47 | Success = 0, // UPSCLR_SUCCESS [INFO] [stdout] 48 | PluginNotInitialized = 1, // UPSCLR_ERROR_PLUGIN_NOT_INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | PluginAlreadyInitialized = 2, // UPSCLR_ERROR_PLUGIN_ALREADY_INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | PluginAlreadyDestroyed = 3, // UPSCLR_ERROR_PLUGIN_ALREADY_DESTROYED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | InvalidArgument = 4, // UPSCLR_ERROR_INVALID_ARGUMENT [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | EngineNotFound = 5, // UPSCLR_ERROR_ENGINE_NOT_FOUND [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 53 | PreloadFailed = 6, // UPSCLR_ERROR_PRELOAD_FAILED [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 54 | UpscaleFailed = 7, // UPSCLR_ERROR_UPSCALE_FAILED [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 55 | Other = 9999, // UPSCLR_ERROR_OTHER [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpsclrErrorCode` 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: fields `upsclr_plugin_get_info`, `upsclr_plugin_count_engines`, and `upsclr_plugin_get_engine_info` are never read [INFO] [stdout] --> src/plugin_manager.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct LoadedPlugin { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub upsclr_plugin_get_info: unsafe extern "C" fn() -> *const plugin_ffi::UpsclrPluginInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub upsclr_plugin_count_engines: unsafe extern "C" fn() -> usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub upsclr_plugin_get_engine_info: [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoadedPlugin` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.54s [INFO] running `Command { std: "docker" "inspect" "c8b3d7d66a9a2c88304f857c8c3cba547862cccbf7138341665d1c2aae3e9698", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8b3d7d66a9a2c88304f857c8c3cba547862cccbf7138341665d1c2aae3e9698", kill_on_drop: false }` [INFO] [stdout] c8b3d7d66a9a2c88304f857c8c3cba547862cccbf7138341665d1c2aae3e9698 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 619e61c3d79ad901aa1833eba755301565fa5fa43f9f7713bb3c66cca17b4a8f [INFO] running `Command { std: "docker" "start" "-a" "619e61c3d79ad901aa1833eba755301565fa5fa43f9f7713bb3c66cca17b4a8f", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.45.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling axum-extra v0.10.1 [INFO] [stderr] Compiling upsclr-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::load_plugin_from_path` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 179 | match Self::load_plugin_from_path(&path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub unsafe fn new(plugins_dir_path_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | let lib = Library::new(path) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | unsafe fn load_plugin_from_path(path: &Path) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 235 | get_symbol!(lib, b"upsclr_plugin_initialize\0")?; [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 237 | get_symbol!(lib, b"upsclr_plugin_shutdown\0")?; [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 239 | get_symbol!(lib, b"upsclr_plugin_get_info\0")?; [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 241 | get_symbol!(lib, b"upsclr_plugin_count_engines\0")?; [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 244 | > = get_symbol!(lib, b"upsclr_plugin_get_engine_info\0")?; [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 252 | > = get_symbol!(lib, b"upsclr_plugin_validate_engine_config\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 255 | > = get_symbol!(lib, b"upsclr_plugin_free_validation_result\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 262 | > = get_symbol!(lib, b"upsclr_plugin_create_engine_instance\0")?; [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 265 | > = get_symbol!(lib, b"upsclr_plugin_destroy_engine_instance\0")?; [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 271 | > = get_symbol!(lib, b"upsclr_plugin_preload_upscale\0")?; [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libloading::Library::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | $lib.get($name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 286 | > = get_symbol!(lib, b"upsclr_plugin_upscale\0")?; [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `get_symbol` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:289:27 [INFO] [stdout] | [INFO] [stdout] 289 | let init_result = initialize_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:298:33 [INFO] [stdout] | [INFO] [stdout] 298 | let c_plugin_info_ptr = get_info_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:305:30 [INFO] [stdout] | [INFO] [stdout] 305 | let c_plugin_info = &*c_plugin_info_ptr; // Unsafe dereference. Valid if plugin API is correct. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:315:19 [INFO] [stdout] | [INFO] [stdout] 315 | name: Self::c_str_to_rust_string(c_plugin_info.name) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:317:22 [INFO] [stdout] | [INFO] [stdout] 317 | version: Self::c_str_to_rust_string(c_plugin_info.version) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | description: Self::c_str_to_rust_string(c_plugin_info.description) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:325:27 [INFO] [stdout] | [INFO] [stdout] 325 | let num_engines = count_engines_fn(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:327:37 [INFO] [stdout] | [INFO] [stdout] 327 | let c_engine_info_ptr = get_engine_info_fn(i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:334:34 [INFO] [stdout] | [INFO] [stdout] 334 | let c_engine_info = &*c_engine_info_ptr; // Unsafe dereference. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:336:23 [INFO] [stdout] | [INFO] [stdout] 336 | name: Self::c_str_to_rust_string(c_engine_info.name).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:339:30 [INFO] [stdout] | [INFO] [stdout] 339 | description: Self::c_str_to_rust_string(c_engine_info.description).map_err( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:347:26 [INFO] [stdout] | [INFO] [stdout] 347 | version: Self::c_str_to_rust_string(c_engine_info.version).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::c_str_to_rust_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &Self::c_str_to_rust_string(c_engine_info.config_json_schema).map_err(|e| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | CStr::from_ptr(c_str_ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | / pub(crate) unsafe fn c_str_to_rust_string( [INFO] [stdout] 404 | | c_str_ptr: *const plugin_ffi::c_char8_t, [INFO] [stdout] 405 | | ) -> Result { [INFO] [stdout] | |_______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `plugin_manager::PluginManager::load_plugin_from_path` is unsafe and requires unsafe block [INFO] [stdout] --> src/plugin_manager.rs:515:19 [INFO] [stdout] | [INFO] [stdout] 515 | match Self::load_plugin_from_path(&plugin_state.path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/plugin_manager.rs:478:5 [INFO] [stdout] | [INFO] [stdout] 478 | / pub unsafe fn import_state( [INFO] [stdout] 479 | | &mut self, [INFO] [stdout] 480 | | state: PluginManagerState, [INFO] [stdout] 481 | | ) -> Result, AppError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/plugin_ffi.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum UpsclrErrorCode { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 47 | Success = 0, // UPSCLR_SUCCESS [INFO] [stdout] 48 | PluginNotInitialized = 1, // UPSCLR_ERROR_PLUGIN_NOT_INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 49 | PluginAlreadyInitialized = 2, // UPSCLR_ERROR_PLUGIN_ALREADY_INITIALIZED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 50 | PluginAlreadyDestroyed = 3, // UPSCLR_ERROR_PLUGIN_ALREADY_DESTROYED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 51 | InvalidArgument = 4, // UPSCLR_ERROR_INVALID_ARGUMENT [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | EngineNotFound = 5, // UPSCLR_ERROR_ENGINE_NOT_FOUND [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 53 | PreloadFailed = 6, // UPSCLR_ERROR_PRELOAD_FAILED [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 54 | UpscaleFailed = 7, // UPSCLR_ERROR_UPSCALE_FAILED [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 55 | Other = 9999, // UPSCLR_ERROR_OTHER [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpsclrErrorCode` 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: fields `upsclr_plugin_get_info`, `upsclr_plugin_count_engines`, and `upsclr_plugin_get_engine_info` are never read [INFO] [stdout] --> src/plugin_manager.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct LoadedPlugin { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub upsclr_plugin_get_info: unsafe extern "C" fn() -> *const plugin_ffi::UpsclrPluginInfo, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 47 | pub upsclr_plugin_count_engines: unsafe extern "C" fn() -> usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 48 | pub upsclr_plugin_get_engine_info: [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoadedPlugin` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 27.66s [INFO] running `Command { std: "docker" "inspect" "619e61c3d79ad901aa1833eba755301565fa5fa43f9f7713bb3c66cca17b4a8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619e61c3d79ad901aa1833eba755301565fa5fa43f9f7713bb3c66cca17b4a8f", kill_on_drop: false }` [INFO] [stdout] 619e61c3d79ad901aa1833eba755301565fa5fa43f9f7713bb3c66cca17b4a8f