[INFO] fetching crate nod 0.1.1... [INFO] testing nod-0.1.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate nod 0.1.1 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate nod 0.1.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nod 0.1.1 [INFO] finished tweaking crates.io crate nod 0.1.1 [INFO] tweaked toml for crates.io crate nod 0.1.1 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate nod 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c91d379068f968eb5c0603a47dd8d06a87bf88bf540e2a213efbd50db961562 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5c91d379068f968eb5c0603a47dd8d06a87bf88bf540e2a213efbd50db961562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c91d379068f968eb5c0603a47dd8d06a87bf88bf540e2a213efbd50db961562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c91d379068f968eb5c0603a47dd8d06a87bf88bf540e2a213efbd50db961562", kill_on_drop: false }` [INFO] [stdout] 5c91d379068f968eb5c0603a47dd8d06a87bf88bf540e2a213efbd50db961562 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5a873b7db80410f87fcd54e3f7cbc8866ba682761d36dc44b5057c82c00dfb9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b5a873b7db80410f87fcd54e3f7cbc8866ba682761d36dc44b5057c82c00dfb9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling file-size v1.0.3 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling aes v0.7.4 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling binread_derive v2.0.0 [INFO] [stderr] Compiling binread v2.1.1 [INFO] [stderr] Compiling nod v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 46.91s [INFO] running `Command { std: "docker" "inspect" "b5a873b7db80410f87fcd54e3f7cbc8866ba682761d36dc44b5057c82c00dfb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5a873b7db80410f87fcd54e3f7cbc8866ba682761d36dc44b5057c82c00dfb9", kill_on_drop: false }` [INFO] [stdout] b5a873b7db80410f87fcd54e3f7cbc8866ba682761d36dc44b5057c82c00dfb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bd86da2822ca42ff48c31f470441625321fd3a90e623518ffb7e38f402c1569 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5bd86da2822ca42ff48c31f470441625321fd3a90e623518ffb7e38f402c1569", kill_on_drop: false }` [INFO] [stderr] Compiling nod v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.41s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/nod-48476d3291c72745) [INFO] [stderr] Executable unittests src/bin.rs (/opt/rustwide/target/debug/deps/nodtool-d73085b55022e466) [INFO] running `Command { std: "docker" "inspect" "5bd86da2822ca42ff48c31f470441625321fd3a90e623518ffb7e38f402c1569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bd86da2822ca42ff48c31f470441625321fd3a90e623518ffb7e38f402c1569", kill_on_drop: false }` [INFO] [stdout] 5bd86da2822ca42ff48c31f470441625321fd3a90e623518ffb7e38f402c1569 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4cb0aa01aed0b79cae812ed55c994d8831e4b6b890974d1759a415ec534b5e35 [INFO] running `Command { std: "docker" "start" "-a" "4cb0aa01aed0b79cae812ed55c994d8831e4b6b890974d1759a415ec534b5e35", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nod-48476d3291c72745) [INFO] [stdout] [INFO] [stderr] Running unittests src/bin.rs (/opt/rustwide/target/debug/deps/nodtool-d73085b55022e466) [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] [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 nod [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/disc/mod.rs - disc::PartReadStream::begin_file_stream (line 128) ... FAILED [INFO] [stdout] test src/disc/mod.rs - disc::new_disc_base (line 100) ... FAILED [INFO] [stdout] test src/disc/mod.rs - disc::DiscBase::get_data_partition (line 84) ... FAILED [INFO] [stdout] test src/disc/mod.rs - disc::PartHeader::find_node (line 165) ... FAILED [INFO] [stdout] test src/io/mod.rs - io::new_disc_io (line 38) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/disc/mod.rs - disc::PartReadStream::begin_file_stream (line 128) stdout ---- [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/disc/mod.rs:141:14 [INFO] [stdout] | [INFO] [stdout] 16 | println!(s); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 16 | println!("{}", s); [INFO] [stdout] | +++++ [INFO] [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/disc/mod.rs:134:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_128_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 9 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_128_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:135:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_128_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 10 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_128_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:136:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_128_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_128_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:137:37 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_128_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 12 | | let header = partition.read_header()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_128_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:140:38 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_128_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 15 | | partition.begin_file_stream(node)?.read_to_string(&mut s); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 16 | | println!(s); [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_128_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/disc/mod.rs - disc::new_disc_base (line 100) 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/disc/mod.rs:104:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_100_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::io::new_disc_io; [INFO] [stdout] 5 | | use nod::disc::new_disc_base; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] 9 | | disc_base.get_header(); [INFO] [stdout] 10 | | } _doctest_main_src_disc_mod_rs_100_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:105:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_100_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::io::new_disc_io; [INFO] [stdout] 5 | | use nod::disc::new_disc_base; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] 8 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | disc_base.get_header(); [INFO] [stdout] 10 | | } _doctest_main_src_disc_mod_rs_100_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/disc/mod.rs - disc::DiscBase::get_data_partition (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/disc/mod.rs:88:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_84_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::new_disc_base; [INFO] [stdout] 5 | | use nod::io::new_disc_io; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] 9 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] 10 | | } _doctest_main_src_disc_mod_rs_84_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:89:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_84_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::new_disc_base; [INFO] [stdout] 5 | | use nod::io::new_disc_io; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] 8 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] 10 | | } _doctest_main_src_disc_mod_rs_84_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:90:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_84_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::new_disc_base; [INFO] [stdout] 5 | | use nod::io::new_disc_io; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 9 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } _doctest_main_src_disc_mod_rs_84_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/disc/mod.rs - disc::PartHeader::find_node (line 165) stdout ---- [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/disc/mod.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 13 | println!(node.name); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 13 | println!("{}", node.name); [INFO] [stdout] | +++++ [INFO] [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/disc/mod.rs:170:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:171:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 9 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:172:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 10 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/disc/mod.rs:173:37 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_disc_mod_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 11 | | let header = partition.read_header()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_disc_mod_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/io/mod.rs - io::new_disc_io (line 38) 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/io/mod.rs:41:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_io_mod_rs_38_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::io::new_disc_io; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_io_mod_rs_38_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 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/lib.rs - (line 13) stdout ---- [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/lib.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 16 | println!(s); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 16 | println!("{}", s); [INFO] [stdout] | +++++ [INFO] [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/lib.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 9 | | let mut disc_io = new_disc_io("path/to/file".as_ref())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/lib.rs:20:48 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 10 | | let disc_base = new_disc_base(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/lib.rs:21:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 11 | | let mut partition = disc_base.get_data_partition(disc_io.as_mut())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/lib.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 12 | | let header = partition.read_header()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [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/lib.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_13_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use nod::disc::{new_disc_base, PartHeader}; [INFO] [stdout] 5 | | use nod::fst::NodeType; [INFO] [stdout] 6 | | use nod::io::new_disc_io; [INFO] [stdout] ... | [INFO] [stdout] 15 | | partition.begin_file_stream(node)?.read_to_string(&mut s); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 16 | | println!(s); [INFO] [stdout] 17 | | } [INFO] [stdout] 18 | | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [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/disc/mod.rs - disc::DiscBase::get_data_partition (line 84) [INFO] [stdout] src/disc/mod.rs - disc::PartHeader::find_node (line 165) [INFO] [stdout] src/disc/mod.rs - disc::PartReadStream::begin_file_stream (line 128) [INFO] [stdout] src/disc/mod.rs - disc::new_disc_base (line 100) [INFO] [stdout] src/io/mod.rs - io::new_disc_io (line 38) [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "4cb0aa01aed0b79cae812ed55c994d8831e4b6b890974d1759a415ec534b5e35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cb0aa01aed0b79cae812ed55c994d8831e4b6b890974d1759a415ec534b5e35", kill_on_drop: false }` [INFO] [stdout] 4cb0aa01aed0b79cae812ed55c994d8831e4b6b890974d1759a415ec534b5e35