[INFO] fetching crate metrics_ipc_collector 0.3.0... [INFO] testing metrics_ipc_collector-0.3.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate metrics_ipc_collector 0.3.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate metrics_ipc_collector 0.3.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate metrics_ipc_collector 0.3.0 [INFO] tweaked toml for crates.io crate metrics_ipc_collector 0.3.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate metrics_ipc_collector 0.3.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate metrics_ipc_collector 0.3.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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a13bfee6bf433014b8b21dbec54caf3a20facaef99b7568c8a5058ec7c79fa7b [INFO] running `Command { std: "docker" "start" "-a" "a13bfee6bf433014b8b21dbec54caf3a20facaef99b7568c8a5058ec7c79fa7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a13bfee6bf433014b8b21dbec54caf3a20facaef99b7568c8a5058ec7c79fa7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a13bfee6bf433014b8b21dbec54caf3a20facaef99b7568c8a5058ec7c79fa7b", kill_on_drop: false }` [INFO] [stdout] a13bfee6bf433014b8b21dbec54caf3a20facaef99b7568c8a5058ec7c79fa7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c236914b567255226a8eb2012f07a85cfe4f3a97cf7200240cbdfe6a5654c5e [INFO] running `Command { std: "docker" "start" "-a" "3c236914b567255226a8eb2012f07a85cfe4f3a97cf7200240cbdfe6a5654c5e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling thiserror v2.0.14 [INFO] [stderr] Compiling doctest-file v1.0.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rmp v0.8.14 [INFO] [stderr] Compiling interprocess v2.2.3 [INFO] [stderr] Compiling metrics v0.24.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.14 [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling metrics_ipc_collector v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.04s [INFO] running `Command { std: "docker" "inspect" "3c236914b567255226a8eb2012f07a85cfe4f3a97cf7200240cbdfe6a5654c5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c236914b567255226a8eb2012f07a85cfe4f3a97cf7200240cbdfe6a5654c5e", kill_on_drop: false }` [INFO] [stdout] 3c236914b567255226a8eb2012f07a85cfe4f3a97cf7200240cbdfe6a5654c5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb2ebcbb69c6ac8f9a5c2e5286c9204416f861040649fa6bd95dffb3d1c204ec [INFO] running `Command { std: "docker" "start" "-a" "fb2ebcbb69c6ac8f9a5c2e5286c9204416f861040649fa6bd95dffb3d1c204ec", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling aws-lc-rs v1.13.3 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling metrics v0.24.2 [INFO] [stderr] Compiling raw-cpuid v11.5.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling rustls-native-certs v0.8.1 [INFO] [stderr] Compiling rand_xoshiro v0.7.0 [INFO] [stderr] Compiling sketches-ddsketch v0.3.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling metrics_ipc_collector v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling quanta v0.12.6 [INFO] [stderr] Compiling metrics-util v0.20.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling aws-lc-sys v0.30.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling metrics-exporter-prometheus v0.17.2 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 57.63s [INFO] running `Command { std: "docker" "inspect" "fb2ebcbb69c6ac8f9a5c2e5286c9204416f861040649fa6bd95dffb3d1c204ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb2ebcbb69c6ac8f9a5c2e5286c9204416f861040649fa6bd95dffb3d1c204ec", kill_on_drop: false }` [INFO] [stdout] fb2ebcbb69c6ac8f9a5c2e5286c9204416f861040649fa6bd95dffb3d1c204ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b6f9622466821461a5ba444ba9f32c210213756fe25591544fbb67b026bf789a [INFO] running `Command { std: "docker" "start" "-a" "b6f9622466821461a5ba444ba9f32c210213756fe25591544fbb67b026bf789a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/metrics_ipc_collector-da60841e486c24d2) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests metrics_ipc_collector [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/recorder.rs - recorder::IPCRecorder (line 84) ... FAILED [INFO] [stdout] test src/recorder.rs - recorder::IPCRecorderBuilder (line 191) ... FAILED [INFO] [stdout] test src/collector.rs - collector::IPCCollector (line 40) ... FAILED [INFO] [stdout] test src/recorder.rs - recorder::IPCRecorderBuilder::build (line 233) ... FAILED [INFO] [stdout] test src/recorder.rs - recorder::IPCRecorder::new (line 108) ... FAILED [INFO] [stdout] test src/collector.rs - collector::IPCCollector (line 66) ... FAILED [INFO] [stdout] test src/recorder.rs - recorder::IPCRecorderBuilder::socket (line 217) ... ok [INFO] [stdout] test src/collector.rs - collector::IPCCollector::start_collecting (line 116) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/recorder.rs - recorder::IPCRecorder (line 84) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/recorder.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 85 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_84_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 88 | builder.build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 85 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_84_0() -> Result<(), Box> { [INFO] [stdout] 86 | use metrics_ipc_collector::IPCRecorderBuilder; [INFO] [stdout] 87 | let builder = IPCRecorderBuilder::default().socket("my_metrics.sock"); [INFO] [stdout] 88 | builder.build()?; [INFO] [stdout] 89 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/recorder.rs - recorder::IPCRecorderBuilder (line 191) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/recorder.rs:195:16 [INFO] [stdout] | [INFO] [stdout] 192 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_191_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 195 | builder.build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 192 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_191_0() -> Result<(), Box> { [INFO] [stdout] 193 | use metrics_ipc_collector::IPCRecorderBuilder; [INFO] [stdout] 194 | let builder = IPCRecorderBuilder::default().socket("my_metrics.sock"); [INFO] [stdout] 195 | builder.build()?; [INFO] [stdout] 196 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collector.rs - collector::IPCCollector (line 40) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/collector.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 41 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_collector_rs_40_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 44 | collector.start_collecting()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 41 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_collector_rs_40_0() -> Result<(), Box> { [INFO] [stdout] 42 | use metrics_ipc_collector::IPCCollector; [INFO] [stdout] 43 | let collector = IPCCollector::default(); [INFO] [stdout] 44 | collector.start_collecting()?; [INFO] [stdout] 45 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/recorder.rs - recorder::IPCRecorderBuilder::build (line 233) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/recorder.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 234 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_233_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 237 | builder.build()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 234 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_recorder_rs_233_0() -> Result<(), Box> { [INFO] [stdout] 235 | use metrics_ipc_collector::IPCRecorderBuilder; [INFO] [stdout] 236 | let builder = IPCRecorderBuilder::default().socket("my_metrics.sock"); [INFO] [stdout] 237 | builder.build()?; [INFO] [stdout] 238 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/recorder.rs - recorder::IPCRecorder::new (line 108) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `interprocess::local_socket::LocalSocketStream` [INFO] [stdout] --> src/recorder.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | use interprocess::local_socket::LocalSocketStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LocalSocketStream` in `local_socket` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 111 - use interprocess::local_socket::LocalSocketStream; [INFO] [stdout] 111 + use interprocess::local_socket::LocalSocketSite; [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 111 | use interprocess::local_socket::prelude::LocalSocketStream; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collector.rs - collector::IPCCollector (line 66) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/collector.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 67 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_collector_rs_66_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 70 | collector.start_collecting()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 67 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_collector_rs_66_0() -> Result<(), Box> { [INFO] [stdout] 68 | use metrics_ipc_collector::IPCCollector; [INFO] [stdout] 69 | let collector = IPCCollector::default(); [INFO] [stdout] 70 | collector.start_collecting()?; [INFO] [stdout] 71 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/collector.rs - collector::IPCCollector (line 40) [INFO] [stdout] src/collector.rs - collector::IPCCollector (line 66) [INFO] [stdout] src/recorder.rs - recorder::IPCRecorder (line 84) [INFO] [stdout] src/recorder.rs - recorder::IPCRecorder::new (line 108) [INFO] [stdout] src/recorder.rs - recorder::IPCRecorderBuilder (line 191) [INFO] [stdout] src/recorder.rs - recorder::IPCRecorderBuilder::build (line 233) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.58s; merged doctests compilation took 0.16s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b6f9622466821461a5ba444ba9f32c210213756fe25591544fbb67b026bf789a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6f9622466821461a5ba444ba9f32c210213756fe25591544fbb67b026bf789a", kill_on_drop: false }` [INFO] [stdout] b6f9622466821461a5ba444ba9f32c210213756fe25591544fbb67b026bf789a