[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#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSegaraRai%2Fupsclr-server" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SegaraRai/upsclr-server 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/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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap v4.5.38 [INFO] [stderr] Downloaded ravif v0.11.12 [INFO] [stderr] Downloaded tokio-test v0.4.4 [INFO] [stderr] Downloaded clap_builder v4.5.38 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] c11c5f8adee8cf0d43ddb6798bc5b0e3e1c3c2bf655615a840d8f4cdef303278 [INFO] running `Command { std: "docker" "start" "-a" "c11c5f8adee8cf0d43ddb6798bc5b0e3e1c3c2bf655615a840d8f4cdef303278", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c11c5f8adee8cf0d43ddb6798bc5b0e3e1c3c2bf655615a840d8f4cdef303278", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c11c5f8adee8cf0d43ddb6798bc5b0e3e1c3c2bf655615a840d8f4cdef303278", kill_on_drop: false }` [INFO] [stdout] c11c5f8adee8cf0d43ddb6798bc5b0e3e1c3c2bf655615a840d8f4cdef303278 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] f241ad8094f7f8a4fb1aafcea8fadee73ccdbb8c23fc3eafe6217b42529e545a [INFO] running `Command { std: "docker" "start" "-a" "f241ad8094f7f8a4fb1aafcea8fadee73ccdbb8c23fc3eafe6217b42529e545a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling imgref v1.11.0 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling bitstream-io v2.6.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling avif-serialize v0.8.3 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling bytemuck v1.23.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling zune-jpeg v0.4.14 [INFO] [stderr] Compiling image-webp v0.2.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling libloading v0.8.7 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [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 profiling-procmacros v1.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [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 thiserror v1.0.69 [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 clap v4.5.38 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ravif v0.11.12 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tower v0.5.2 [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 h2 v0.4.10 [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 1m 05s [INFO] running `Command { std: "docker" "inspect" "f241ad8094f7f8a4fb1aafcea8fadee73ccdbb8c23fc3eafe6217b42529e545a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f241ad8094f7f8a4fb1aafcea8fadee73ccdbb8c23fc3eafe6217b42529e545a", kill_on_drop: false }` [INFO] [stdout] f241ad8094f7f8a4fb1aafcea8fadee73ccdbb8c23fc3eafe6217b42529e545a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] a4ce1cc9c6478a22711ac2bf7fa530fd3484ab2377683ce62a79203e46fcbeef [INFO] running `Command { std: "docker" "start" "-a" "a4ce1cc9c6478a22711ac2bf7fa530fd3484ab2377683ce62a79203e46fcbeef", 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 25.74s [INFO] running `Command { std: "docker" "inspect" "a4ce1cc9c6478a22711ac2bf7fa530fd3484ab2377683ce62a79203e46fcbeef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ce1cc9c6478a22711ac2bf7fa530fd3484ab2377683ce62a79203e46fcbeef", kill_on_drop: false }` [INFO] [stdout] a4ce1cc9c6478a22711ac2bf7fa530fd3484ab2377683ce62a79203e46fcbeef