[INFO] fetching crate fusabi-host 0.1.0... [INFO] testing fusabi-host-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate fusabi-host 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate fusabi-host 0.1.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate fusabi-host 0.1.0 [INFO] tweaked toml for crates.io crate fusabi-host 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fusabi-host 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fusabi-host 0.1.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded value-bag v1.12.0 [INFO] [stderr] Downloaded protobuf v2.28.0 [INFO] [stderr] Downloaded async-std v1.13.2 [INFO] [stderr] Downloaded prometheus v0.13.4 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 490c9c6832cb801b003bab142a12ef92761348bb07f40206ab7acfc00c21c4ae [INFO] running `Command { std: "docker" "start" "-a" "490c9c6832cb801b003bab142a12ef92761348bb07f40206ab7acfc00c21c4ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "490c9c6832cb801b003bab142a12ef92761348bb07f40206ab7acfc00c21c4ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "490c9c6832cb801b003bab142a12ef92761348bb07f40206ab7acfc00c21c4ae", kill_on_drop: false }` [INFO] [stdout] 490c9c6832cb801b003bab142a12ef92761348bb07f40206ab7acfc00c21c4ae [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f8ca3dfc759208201d482db0eaaf64f20b9ea44f4512b4dec3e554ceebc3a2c [INFO] running `Command { std: "docker" "start" "-a" "8f8ca3dfc759208201d482db0eaaf64f20b9ea44f4512b4dec3e554ceebc3a2c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling tracing-core v0.1.35 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing v0.1.43 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling fusabi-host v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueConversionError` [INFO] [stdout] --> src/macros.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::convert::{FromValue, IntoValue, ValueConversionError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/pool.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bytecode_metadata` is never used [INFO] [stdout] --> src/compile.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn extract_bytecode_metadata(bytecode: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bytecode_cache` is never read [INFO] [stdout] --> src/engine.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 311 | bytecode_cache: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_stack_depth` is never read [INFO] [stdout] --> src/limits.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct LimitTracker { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 264 | current_stack_depth: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LimitTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset`, `push_stack`, `pop_stack`, `elapsed`, `memory_used`, and `instructions_executed` are never used [INFO] [stdout] --> src/limits.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl LimitTracker { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn push_stack(&mut self) -> Result<(), LimitViolation> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn pop_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn memory_used(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | pub fn instructions_executed(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Optional` is never constructed [INFO] [stdout] --> src/macros.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Optional(pub Option); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rest` is never constructed [INFO] [stdout] --> src/macros.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Rest(pub Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wrap_host_fn` is never used [INFO] [stdout] --> src/macros.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn wrap_host_fn(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_0` is never used [INFO] [stdout] --> src/macros.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn typed_host_fn_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_1` is never used [INFO] [stdout] --> src/macros.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn typed_host_fn_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_3` is never used [INFO] [stdout] --> src/macros.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn typed_host_fn_3( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_4` is never used [INFO] [stdout] --> src/macros.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn typed_host_fn_4( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_0` is never used [INFO] [stdout] --> src/macros.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn typed_host_fn_ctx_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_1` is never used [INFO] [stdout] --> src/macros.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn typed_host_fn_ctx_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_2` is never used [INFO] [stdout] --> src/macros.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn typed_host_fn_ctx_2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostFnBuilder` is never constructed [INFO] [stdout] --> src/macros.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub struct HostFnBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, `register_module`, and `build` are never used [INFO] [stdout] --> src/macros.rs:346:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl HostFnBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 345 | /// Create a new builder. [INFO] [stdout] 346 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn register(mut self, name: S, f: F) -> Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn register_module(mut self, module: M, name: N, f: F) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn build(self) -> crate::engine::HostRegistry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> src/pool.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct PooledEngine { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 130 | engine: Engine, [INFO] [stdout] 131 | created_at: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `idle_time` is never used [INFO] [stdout] --> src/pool.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 136 | impl PooledEngine { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn idle_time(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.81s [INFO] running `Command { std: "docker" "inspect" "8f8ca3dfc759208201d482db0eaaf64f20b9ea44f4512b4dec3e554ceebc3a2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f8ca3dfc759208201d482db0eaaf64f20b9ea44f4512b4dec3e554ceebc3a2c", kill_on_drop: false }` [INFO] [stdout] 8f8ca3dfc759208201d482db0eaaf64f20b9ea44f4512b4dec3e554ceebc3a2c [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c201afafda8a5ed28099c6ef4b64204a305618d71e05bb784becc5ca86b5d744 [INFO] running `Command { std: "docker" "start" "-a" "c201afafda8a5ed28099c6ef4b64204a305618d71e05bb784becc5ca86b5d744", kill_on_drop: false }` [INFO] [stderr] Compiling tracing-core v0.1.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling tracing v0.1.43 [INFO] [stderr] Compiling fusabi-host v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueConversionError` [INFO] [stdout] --> src/macros.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::convert::{FromValue, IntoValue, ValueConversionError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/pool.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stdout] warning: function `extract_bytecode_metadata` is never used [INFO] [stdout] --> src/compile.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn extract_bytecode_metadata(bytecode: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bytecode_cache` is never read [INFO] [stdout] --> src/engine.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 311 | bytecode_cache: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_stack_depth` is never read [INFO] [stdout] --> src/limits.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct LimitTracker { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 264 | current_stack_depth: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LimitTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset`, `push_stack`, `pop_stack`, `elapsed`, `memory_used`, and `instructions_executed` are never used [INFO] [stdout] --> src/limits.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl LimitTracker { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn push_stack(&mut self) -> Result<(), LimitViolation> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn pop_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn memory_used(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | pub fn instructions_executed(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Optional` is never constructed [INFO] [stdout] --> src/macros.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct Optional(pub Option); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rest` is never constructed [INFO] [stdout] --> src/macros.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct Rest(pub Vec); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wrap_host_fn` is never used [INFO] [stdout] --> src/macros.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn wrap_host_fn(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_0` is never used [INFO] [stdout] --> src/macros.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn typed_host_fn_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_1` is never used [INFO] [stdout] --> src/macros.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn typed_host_fn_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_3` is never used [INFO] [stdout] --> src/macros.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn typed_host_fn_3( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_4` is never used [INFO] [stdout] --> src/macros.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn typed_host_fn_4( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_0` is never used [INFO] [stdout] --> src/macros.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn typed_host_fn_ctx_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_1` is never used [INFO] [stdout] --> src/macros.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn typed_host_fn_ctx_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_2` is never used [INFO] [stdout] --> src/macros.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn typed_host_fn_ctx_2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostFnBuilder` is never constructed [INFO] [stdout] --> src/macros.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | pub struct HostFnBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, `register_module`, and `build` are never used [INFO] [stdout] --> src/macros.rs:346:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl HostFnBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 345 | /// Create a new builder. [INFO] [stdout] 346 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn register(mut self, name: S, f: F) -> Self [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn register_module(mut self, module: M, name: N, f: F) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 374 | pub fn build(self) -> crate::engine::HostRegistry { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> src/pool.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct PooledEngine { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 130 | engine: Engine, [INFO] [stdout] 131 | created_at: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `idle_time` is never used [INFO] [stdout] --> src/pool.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 136 | impl PooledEngine { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn idle_time(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Result` [INFO] [stdout] --> tests/integration.rs:12:57 [INFO] [stdout] | [INFO] [stdout] 12 | Capabilities, Capability, Error, FromValue, Limits, Result, Value, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> examples/sandbox_config.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Err(e) => println!(" Require ProcessExec: denied"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromValue` [INFO] [stdout] --> tests/integration.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | Capabilities, Capability, Error, FromValue, Limits, Result, Value, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `allowlist` [INFO] [stdout] --> examples/sandbox_config.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let allowlist = PathPolicy::allow(["/tmp", "/home/user/data"]); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allowlist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `denylist` [INFO] [stdout] --> examples/sandbox_config.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let denylist = PathPolicy::deny(["/etc", "/root"]); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_denylist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> examples/sandbox_config.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | Err(e) => println!(" Read /etc/passwd: denied"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> examples/sandbox_config.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | Err(e) => println!(" Connect hacker.com: denied"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueConversionError` [INFO] [stdout] --> src/macros.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::convert::{FromValue, IntoValue, ValueConversionError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/pool.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bytecode_metadata` is never used [INFO] [stdout] --> src/compile.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn extract_bytecode_metadata(bytecode: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bytecode_cache` is never read [INFO] [stdout] --> src/engine.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 311 | bytecode_cache: Mutex>>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_stack_depth` is never read [INFO] [stdout] --> src/limits.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct LimitTracker { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 264 | current_stack_depth: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LimitTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `reset`, `push_stack`, `pop_stack`, `elapsed`, `memory_used`, and `instructions_executed` are never used [INFO] [stdout] --> src/limits.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl LimitTracker { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn push_stack(&mut self) -> Result<(), LimitViolation> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn pop_stack(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 361 | pub fn elapsed(&self) -> Duration { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn memory_used(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 371 | pub fn instructions_executed(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wrap_host_fn` is never used [INFO] [stdout] --> src/macros.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn wrap_host_fn(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_0` is never used [INFO] [stdout] --> src/macros.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn typed_host_fn_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_1` is never used [INFO] [stdout] --> src/macros.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn typed_host_fn_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_3` is never used [INFO] [stdout] --> src/macros.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn typed_host_fn_3( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_4` is never used [INFO] [stdout] --> src/macros.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn typed_host_fn_4( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_0` is never used [INFO] [stdout] --> src/macros.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn typed_host_fn_ctx_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_1` is never used [INFO] [stdout] --> src/macros.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn typed_host_fn_ctx_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `typed_host_fn_ctx_2` is never used [INFO] [stdout] --> src/macros.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn typed_host_fn_ctx_2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `created_at` is never read [INFO] [stdout] --> src/pool.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 129 | struct PooledEngine { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 130 | engine: Engine, [INFO] [stdout] 131 | created_at: Instant, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `idle_time` is never used [INFO] [stdout] --> src/pool.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 136 | impl PooledEngine { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | fn idle_time(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_cpus_get` is never used [INFO] [stdout] --> src/pool.rs:509:8 [INFO] [stdout] | [INFO] [stdout] 509 | fn num_cpus_get() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.46s [INFO] running `Command { std: "docker" "inspect" "c201afafda8a5ed28099c6ef4b64204a305618d71e05bb784becc5ca86b5d744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c201afafda8a5ed28099c6ef4b64204a305618d71e05bb784becc5ca86b5d744", kill_on_drop: false }` [INFO] [stdout] c201afafda8a5ed28099c6ef4b64204a305618d71e05bb784becc5ca86b5d744 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a72757278706878f16615e1bd90e0309df9922c462e3f849571875673b72c9f2 [INFO] running `Command { std: "docker" "start" "-a" "a72757278706878f16615e1bd90e0309df9922c462e3f849571875673b72c9f2", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::fmt` [INFO] [stderr] --> src/error.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `ValueConversionError` [INFO] [stderr] --> src/macros.rs:6:44 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::convert::{FromValue, IntoValue, ValueConversionError}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `parking_lot::Mutex` [INFO] [stderr] --> src/pool.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use parking_lot::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `extract_bytecode_metadata` is never used [INFO] [stderr] --> src/compile.rs:314:8 [INFO] [stderr] | [INFO] [stderr] 314 | pub fn extract_bytecode_metadata(bytecode: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `bytecode_cache` is never read [INFO] [stderr] --> src/engine.rs:311:5 [INFO] [stderr] | [INFO] [stderr] 305 | pub struct Engine { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 311 | bytecode_cache: Mutex>>, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `current_stack_depth` is never read [INFO] [stderr] --> src/limits.rs:264:5 [INFO] [stderr] | [INFO] [stderr] 259 | pub struct LimitTracker { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 264 | current_stack_depth: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LimitTracker` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `reset`, `push_stack`, `pop_stack`, `elapsed`, `memory_used`, and `instructions_executed` are never used [INFO] [stderr] --> src/limits.rs:286:12 [INFO] [stderr] | [INFO] [stderr] 270 | impl LimitTracker { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 286 | pub fn reset(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 314 | pub fn push_stack(&mut self) -> Result<(), LimitViolation> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 320 | pub fn pop_stack(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 361 | pub fn elapsed(&self) -> Duration { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 366 | pub fn memory_used(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 371 | pub fn instructions_executed(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Optional` is never constructed [INFO] [stderr] --> src/macros.rs:70:12 [INFO] [stderr] | [INFO] [stderr] 70 | pub struct Optional(pub Option); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Rest` is never constructed [INFO] [stderr] --> src/macros.rs:93:12 [INFO] [stderr] | [INFO] [stderr] 93 | pub struct Rest(pub Vec); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wrap_host_fn` is never used [INFO] [stderr] --> src/macros.rs:141:8 [INFO] [stderr] | [INFO] [stderr] 141 | pub fn wrap_host_fn(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_0` is never used [INFO] [stderr] --> src/macros.rs:158:8 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn typed_host_fn_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_1` is never used [INFO] [stderr] --> src/macros.rs:167:8 [INFO] [stderr] | [INFO] [stderr] 167 | pub fn typed_host_fn_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_3` is never used [INFO] [stderr] --> src/macros.rs:195:8 [INFO] [stderr] | [INFO] [stderr] 195 | pub fn typed_host_fn_3( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_4` is never used [INFO] [stderr] --> src/macros.rs:214:8 [INFO] [stderr] | [INFO] [stderr] 214 | pub fn typed_host_fn_4( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_ctx_0` is never used [INFO] [stderr] --> src/macros.rs:235:8 [INFO] [stderr] | [INFO] [stderr] 235 | pub fn typed_host_fn_ctx_0(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_ctx_1` is never used [INFO] [stderr] --> src/macros.rs:244:8 [INFO] [stderr] | [INFO] [stderr] 244 | pub fn typed_host_fn_ctx_1(f: F) -> impl Fn(&[Value], &ExecutionContext) -> Result [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `typed_host_fn_ctx_2` is never used [INFO] [stderr] --> src/macros.rs:257:8 [INFO] [stderr] | [INFO] [stderr] 257 | pub fn typed_host_fn_ctx_2( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `HostFnBuilder` is never constructed [INFO] [stderr] --> src/macros.rs:340:12 [INFO] [stderr] | [INFO] [stderr] 340 | pub struct HostFnBuilder { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `register`, `register_module`, and `build` are never used [INFO] [stderr] --> src/macros.rs:346:12 [INFO] [stderr] | [INFO] [stderr] 344 | impl HostFnBuilder { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 345 | /// Create a new builder. [INFO] [stderr] 346 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 353 | pub fn register(mut self, name: S, f: F) -> Self [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 363 | pub fn register_module(mut self, module: M, name: N, f: F) -> Self [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 374 | pub fn build(self) -> crate::engine::HostRegistry { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `created_at` is never read [INFO] [stderr] --> src/pool.rs:131:5 [INFO] [stderr] | [INFO] [stderr] 129 | struct PooledEngine { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 130 | engine: Engine, [INFO] [stderr] 131 | created_at: Instant, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `idle_time` is never used [INFO] [stderr] --> src/pool.rs:152:8 [INFO] [stderr] | [INFO] [stderr] 136 | impl PooledEngine { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 152 | fn idle_time(&self) -> Duration { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `num_cpus_get` is never used [INFO] [stderr] --> src/pool.rs:509:8 [INFO] [stderr] | [INFO] [stderr] 509 | fn num_cpus_get() -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `fusabi-host` (lib) generated 21 warnings (run `cargo fix --lib -p fusabi-host` to apply 3 suggestions) [INFO] [stderr] warning: `fusabi-host` (lib test) generated 18 warnings (17 duplicates) [INFO] [stderr] warning: unused import: `Result` [INFO] [stderr] --> tests/integration.rs:12:57 [INFO] [stderr] | [INFO] [stderr] 12 | Capabilities, Capability, Error, FromValue, Limits, Result, Value, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `FromValue` [INFO] [stderr] --> tests/integration.rs:12:38 [INFO] [stderr] | [INFO] [stderr] 12 | Capabilities, Capability, Error, FromValue, Limits, Result, Value, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> examples/sandbox_config.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | Err(e) => println!(" Require ProcessExec: denied"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 76 tests [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `allowlist` [INFO] [stderr] --> examples/sandbox_config.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 106 | let allowlist = PathPolicy::allow(["/tmp", "/home/user/data"]); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_allowlist` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `denylist` [INFO] [stderr] --> examples/sandbox_config.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | let denylist = PathPolicy::deny(["/etc", "/root"]); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_denylist` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> examples/sandbox_config.rs:172:13 [INFO] [stderr] | [INFO] [stderr] 172 | Err(e) => println!(" Read /etc/passwd: denied"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> examples/sandbox_config.rs:182:13 [INFO] [stderr] | [INFO] [stderr] 182 | Err(e) => println!(" Connect hacker.com: denied"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: `fusabi-host` (test "integration") generated 2 warnings (run `cargo fix --test "integration" -p fusabi-host` to apply 1 suggestion) [INFO] [stderr] warning: `fusabi-host` (example "sandbox_config") generated 5 warnings (run `cargo fix --example "sandbox_config" -p fusabi-host` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fusabi_host-d9f4e692389d846d) [INFO] [stdout] test capabilities::tests::test_capabilities_all ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_from_names ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_intersect ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_merge ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_safe_defaults ... ok [INFO] [stdout] test capabilities::tests::test_dangerous_capabilities ... ok [INFO] [stdout] test compile::tests::test_compile_file_wrong_extension ... ok [INFO] [stdout] test compile::tests::test_compile_empty_source ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_none ... ok [INFO] [stdout] test compile::tests::test_compile_options_builder ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_require ... ok [INFO] [stdout] test capabilities::tests::test_capability_name_roundtrip ... ok [INFO] [stdout] test compile::tests::test_compile_warnings ... ok [INFO] [stdout] test compile::tests::test_compile_source ... ok [INFO] [stdout] test compile::tests::test_validate_bytecode ... ok [INFO] [stdout] test compile::tests::test_validate_invalid_bytecode ... ok [INFO] [stdout] test compile::tests::test_compile_options_presets ... ok [INFO] [stdout] test compile::tests::test_metadata_extraction ... ok [INFO] [stdout] test convert::tests::serde_tests::test_json_conversion ... ok [INFO] [stdout] test convert::tests::test_from_value_collections ... ok [INFO] [stdout] test convert::tests::test_from_value_option ... ok [INFO] [stdout] test convert::tests::test_from_value_primitives ... ok [INFO] [stdout] test convert::tests::test_from_value_type_mismatch ... ok [INFO] [stdout] test capabilities::tests::test_capabilities_builder ... ok [INFO] [stdout] test convert::tests::test_numeric_range ... ok [INFO] [stdout] test engine::tests::test_engine_cancel ... ok [INFO] [stdout] test engine::tests::test_engine_config_builder ... ok [INFO] [stdout] test engine::tests::test_engine_creation ... ok [INFO] [stdout] test engine::tests::test_engine_execute_numbers ... ok [INFO] [stdout] test engine::tests::test_engine_execute_booleans ... ok [INFO] [stdout] test engine::tests::test_engine_execute_string ... ok [INFO] [stdout] test engine::tests::test_engine_execute_addition ... ok [INFO] [stdout] test error::tests::test_error_classification ... ok [INFO] [stdout] test error::tests::test_error_display ... ok [INFO] [stdout] test limits::tests::test_builder_pattern ... ok [INFO] [stdout] test limits::tests::test_default_limits ... ok [INFO] [stdout] test convert::tests::serde_tests::test_serde_roundtrip ... ok [INFO] [stdout] test limits::tests::test_limit_checks ... ok [INFO] [stdout] test engine::tests::test_execution_context_capabilities ... ok [INFO] [stdout] test limits::tests::test_limit_tracker ... ok [INFO] [stdout] test macros::tests::test_arg_extraction ... ok [INFO] [stdout] test engine::tests::test_execution_context_custom_data ... ok [INFO] [stdout] test limits::tests::test_unlimited ... ok [INFO] [stdout] test engine::tests::test_host_registry ... ok [INFO] [stdout] test limits::tests::test_strict_limits ... ok [INFO] [stdout] test macros::tests::test_arg_extraction_missing ... ok [INFO] [stdout] test macros::tests::test_host_fn_builder ... ok [INFO] [stdout] test macros::tests::test_optional_arg ... ok [INFO] [stdout] test macros::tests::test_typed_host_fn ... ok [INFO] [stdout] test macros::tests::test_typed_host_fn_with_result ... ok [INFO] [stdout] test pool::tests::test_pool_acquire_release ... ok [INFO] [stdout] test macros::tests::test_rest_args ... ok [INFO] [stdout] test pool::tests::test_pool_creation ... ok [INFO] [stdout] test pool::tests::test_pool_config_builder ... ok [INFO] [stdout] test pool::tests::test_handle_cancel ... ok [INFO] [stdout] test pool::tests::test_pool_execute ... ok [INFO] [stdout] test pool::tests::test_pool_lazy_init ... ok [INFO] [stdout] test pool::tests::test_pool_stats ... ok [INFO] [stdout] test pool::tests::test_pool_try_acquire ... ok [INFO] [stdout] test pool::tests::test_pool_shutdown ... ok [INFO] [stdout] test sandbox::tests::test_net_policy_deny_all ... ok [INFO] [stdout] test sandbox::tests::test_net_policy_denylist ... ok [INFO] [stdout] test sandbox::tests::test_path_policy_allow_all ... ok [INFO] [stdout] test sandbox::tests::test_net_policy_allow_all ... ok [INFO] [stdout] test sandbox::tests::test_path_policy_allowlist ... ok [INFO] [stdout] test sandbox::tests::test_path_policy_deny_all ... ok [INFO] [stdout] test sandbox::tests::test_sandbox_config_builder ... ok [INFO] [stdout] test sandbox::tests::test_net_policy_allowlist ... ok [INFO] [stdout] test tests::test_version_compatibility ... ok [INFO] [stdout] test value::tests::test_value_accessors ... ok [INFO] [stdout] test value::tests::test_value_display ... ok [INFO] [stdout] test sandbox::tests::test_sandbox_config_locked ... ok [INFO] [stdout] test sandbox::tests::test_sandbox_config_permissive ... ok [INFO] [stdout] test value::tests::test_value_from_impls ... ok [INFO] [stdout] test value::tests::test_value_types ... ok [INFO] [stdout] test pool::tests::test_pool_exhausted ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 76 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Running tests/integration.rs (/opt/rustwide/target/debug/deps/integration-62e021d2073c48cd) [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test serde_tests::test_json_conversion ... ok [INFO] [stdout] test test_capabilities_enforcement ... ok [INFO] [stdout] test serde_tests::test_serde_roundtrip ... ok [INFO] [stdout] test test_compile_and_execute ... ok [INFO] [stdout] test test_engine_cancellation ... ok [INFO] [stdout] test test_compile_options_presets ... ok [INFO] [stdout] test test_limits_enforcement ... ok [INFO] [stdout] test test_metadata_extraction ... ok [INFO] [stdout] test test_engine_with_strict_config ... ok [INFO] [stdout] test test_engine_lifecycle ... ok [INFO] [stdout] test test_value_conversions ... ok [INFO] [stdout] test test_sandbox_net_policy ... ok [INFO] [stdout] test test_host_registry ... ok [INFO] [stdout] test test_typed_host_functions ... ok [INFO] [stdout] test test_sandbox_path_policy ... ok [INFO] [stdout] test test_pool_shutdown ... ok [INFO] [stdout] test test_pool_concurrent_execution ... ok [INFO] [stdout] test test_lazy_pool_init ... ok [INFO] [stdout] test test_pool_exhaustion ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Doc-tests fusabi_host [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 14) ... ignored [INFO] [stdout] test src/macros.rs - macros::host_fn (line 277) ... ignored [INFO] [stdout] test src/macros.rs - macros::typed_host_fn_0 (line 153) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a72757278706878f16615e1bd90e0309df9922c462e3f849571875673b72c9f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a72757278706878f16615e1bd90e0309df9922c462e3f849571875673b72c9f2", kill_on_drop: false }` [INFO] [stdout] a72757278706878f16615e1bd90e0309df9922c462e3f849571875673b72c9f2