[INFO] fetching crate qstorage 0.1.0... [INFO] testing qstorage-0.1.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate qstorage 0.1.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate qstorage 0.1.0 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 qstorage 0.1.0 [INFO] finished tweaking crates.io crate qstorage 0.1.0 [INFO] tweaked toml for crates.io crate qstorage 0.1.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] 497b7d4dbffec9df277fe1a9a895566245e69736f430d0320ad06f31e9d084ae [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" "497b7d4dbffec9df277fe1a9a895566245e69736f430d0320ad06f31e9d084ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "497b7d4dbffec9df277fe1a9a895566245e69736f430d0320ad06f31e9d084ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "497b7d4dbffec9df277fe1a9a895566245e69736f430d0320ad06f31e9d084ae", kill_on_drop: false }` [INFO] [stdout] 497b7d4dbffec9df277fe1a9a895566245e69736f430d0320ad06f31e9d084ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 546805f8ef46ed61947d14e5694ccfd65f058c996b52b9c024bfded1142539bd [INFO] running `Command { std: "docker" "start" "-a" "546805f8ef46ed61947d14e5694ccfd65f058c996b52b9c024bfded1142539bd", kill_on_drop: false }` [INFO] [stderr] Compiling qstorage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/engine.rs:189:50 [INFO] [stdout] | [INFO] [stdout] 189 | let end = skip + self.block_size;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.07s [INFO] running `Command { std: "docker" "inspect" "546805f8ef46ed61947d14e5694ccfd65f058c996b52b9c024bfded1142539bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "546805f8ef46ed61947d14e5694ccfd65f058c996b52b9c024bfded1142539bd", kill_on_drop: false }` [INFO] [stdout] 546805f8ef46ed61947d14e5694ccfd65f058c996b52b9c024bfded1142539bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ecea50455a3dd763d7e5b372283a54a55191c61f7d57c25066c9bbed669c82ab [INFO] running `Command { std: "docker" "start" "-a" "ecea50455a3dd763d7e5b372283a54a55191c61f7d57c25066c9bbed669c82ab", kill_on_drop: false }` [INFO] [stderr] Compiling qstorage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/engine.rs:189:50 [INFO] [stdout] | [INFO] [stdout] 189 | let end = skip + self.block_size;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/engine.rs:189:50 [INFO] [stdout] | [INFO] [stdout] 189 | let end = skip + self.block_size;; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.03s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/qstorage-ae121945e7624de2) [INFO] running `Command { std: "docker" "inspect" "ecea50455a3dd763d7e5b372283a54a55191c61f7d57c25066c9bbed669c82ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecea50455a3dd763d7e5b372283a54a55191c61f7d57c25066c9bbed669c82ab", kill_on_drop: false }` [INFO] [stdout] ecea50455a3dd763d7e5b372283a54a55191c61f7d57c25066c9bbed669c82ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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] [stdout] ed96f6734ea464d1fb0e83dcb3a9bb9f24b27862c7f3a83209180496eba28d86 [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" "ed96f6734ea464d1fb0e83dcb3a9bb9f24b27862c7f3a83209180496eba28d86", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/engine.rs:189:50 [INFO] [stderr] | [INFO] [stderr] 189 | let end = skip + self.block_size;; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `qstorage` (lib) generated 1 warning [INFO] [stderr] warning: `qstorage` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/qstorage-ae121945e7624de2) [INFO] [stdout] [INFO] [stderr] Doc-tests qstorage [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] warning: unnecessary trailing semicolon [INFO] [stderr] --> /opt/rustwide/workdir/src/engine.rs:189:50 [INFO] [stderr] | [INFO] [stderr] 189 | let end = skip + self.block_size;; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/lib.rs - QStorage::new (line 93) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::remove (line 207) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::new (line 99) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::insert (line 152) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::insert (line 59) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::get (line 172) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::get (line 165) ... FAILED [INFO] [stdout] test src/util.rs - util::join (line 145) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Chunk::from (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::remove (line 179) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::read (line 215) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Chunk::new (line 60) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::from (line 117) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::ready (line 115) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::new (line 40) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::create (line 145) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::write (line 172) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::closed (line 137) ... FAILED [INFO] [stdout] test src/util.rs - util::parse (line 173) ... FAILED [INFO] [stdout] test src/lib.rs - (line 25) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - QStorage::new (line 93) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:95:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_93_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_93_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::Engine::remove (line 207) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Engine` [INFO] [stdout] --> src/engine.rs:209:18 [INFO] [stdout] | [INFO] [stdout] 4 | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] | ^^^^^^ use of undeclared type `Engine` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/engine.rs:210:45 [INFO] [stdout] | [INFO] [stdout] 5 | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [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/engine.rs:210:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_207_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] 5 | | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | engine.remove(String::from("hello"))?; [INFO] [stdout] 7 | | } _doctest_main_src_engine_rs_207_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/engine.rs:211:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_207_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] 5 | | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] 6 | | engine.remove(String::from("hello"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_engine_rs_207_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Storage::new (line 99) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Storage` [INFO] [stdout] --> src/storage.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 5 | Storage::new(chunk_size, path_name); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Storage` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - QStorage::insert (line 152) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:154:64 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_152_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_152_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:154:73 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_152_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_152_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:155:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_152_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_lib_rs_152_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::Engine::insert (line 59) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Engine` [INFO] [stdout] --> src/engine.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 4 | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] | ^^^^^^ use of undeclared type `Engine` [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/engine.rs:62:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_59_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] 5 | | engine.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_engine_rs_59_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::Engine::get (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Engine` [INFO] [stdout] --> src/engine.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 4 | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] | ^^^^^^ use of undeclared type `Engine` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/engine.rs:175:45 [INFO] [stdout] | [INFO] [stdout] 5 | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [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/engine.rs:175:65 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_172_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] 5 | | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | engine.get(String::from("hello"))?; [INFO] [stdout] 7 | | } _doctest_main_src_engine_rs_172_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/engine.rs:176:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_engine_rs_172_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | let mut engine = Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] 5 | | engine.insert(String::from("hello"), "word".as_slice().to_vec())?; [INFO] [stdout] 6 | | engine.get(String::from("hello"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_engine_rs_172_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - QStorage::get (line 165) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:167:64 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.get(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_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/lib.rs:167:73 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.get(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_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/lib.rs:168:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | qstorage.get(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_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/lib.rs:169:36 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.get(String::from("hello"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_lib_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/util.rs - util::join (line 145) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `join` in this scope [INFO] [stdout] --> src/util.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 3 | join(vec![0_u64, 1_u64, 2_u64]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Chunk::from (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Chunk` [INFO] [stdout] --> src/storage.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 7 | Chunk::from(filename, *metadata.len(), context); [INFO] [stdout] | ^^^^^ use of undeclared type `Chunk` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/storage.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 4 | let path = Path::new(&filename); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/storage.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut context = File::open(path); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [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/storage.rs:80:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_76_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let filename = String::from("chunk.0.qs"); [INFO] [stdout] 4 | | let path = Path::new(&filename); [INFO] [stdout] 5 | | let mut context = File::open(path); [INFO] [stdout] 6 | | let metadata = &context.metadata()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | Chunk::from(filename, *metadata.len(), context); [INFO] [stdout] 8 | | } _doctest_main_src_storage_rs_76_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - QStorage::remove (line 179) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:181:64 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_179_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.remove(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_179_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:181:73 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_179_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.remove(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_179_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:182:67 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_179_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | qstorage.remove(String::from("hello"))?; [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_179_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:183:39 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_179_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let dirname = String::from("./storage"); [INFO] [stdout] 5 | | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] 6 | | qstorage.insert(String::from("hello"), "word".as_bytes().to_vec())?; [INFO] [stdout] 7 | | qstorage.remove(String::from("hello"))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_lib_rs_179_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Storage::read (line 215) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Storage` [INFO] [stdout] --> src/storage.rs:218:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Storage` [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/storage.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_215_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let chunk_size: u64 = 10737418240; [INFO] [stdout] 4 | | let path_name = String::from("./storage"); [INFO] [stdout] 5 | | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] 6 | | storage.read(0, 100)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_storage_rs_215_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Chunk::new (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Chunk` [INFO] [stdout] --> src/storage.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 4 | Chunk::new(filename, 0); [INFO] [stdout] | ^^^^^ use of undeclared type `Chunk` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Storage::from (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Storage` [INFO] [stdout] --> src/storage.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Storage` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Chunk` [INFO] [stdout] --> src/storage.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 8 | Chunk::new(String::from("chunk.0.qs"), 0) [INFO] [stdout] | ^^^^^ use of undeclared type `Chunk` [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/storage.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_117_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let chunk_size: u64 = 10737418240; [INFO] [stdout] 4 | | let path_name = String::from("./storage"); [INFO] [stdout] 5 | | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] ... | [INFO] [stdout] 11 | | storage.from(chunks)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } _doctest_main_src_storage_rs_117_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - QStorage::ready (line 115) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:117:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_115_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_115_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:117:54 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_115_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_115_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/engine.rs - engine::Engine::new (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Engine` [INFO] [stdout] --> src/engine.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 4 | Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] | ^^^^^^ use of undeclared type `Engine` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Storage::create (line 145) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Storage` [INFO] [stdout] --> src/storage.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Storage` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Chunk` [INFO] [stdout] --> src/storage.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 8 | Chunk::new(String::from("chunk.0.qs"), 0) [INFO] [stdout] | ^^^^^ use of undeclared type `Chunk` [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/storage.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_145_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let chunk_size: u64 = 10737418240; [INFO] [stdout] 4 | | let path_name = String::from("./storage"); [INFO] [stdout] 5 | | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] ... | [INFO] [stdout] 11 | | storage.from(chunks)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | storage.create()?; [INFO] [stdout] 13 | | } _doctest_main_src_storage_rs_145_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/storage.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_145_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let chunk_size: u64 = 10737418240; [INFO] [stdout] 4 | | let path_name = String::from("./storage"); [INFO] [stdout] 5 | | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] ... | [INFO] [stdout] 12 | | storage.create()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_storage_rs_145_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/storage.rs - storage::Storage::write (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Storage` [INFO] [stdout] --> src/storage.rs:175:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Storage` [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/storage.rs:176:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_storage_rs_172_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let chunk_size: u64 = 10737418240; [INFO] [stdout] 4 | | let path_name = String::from("./storage"); [INFO] [stdout] 5 | | let mut storage = Storage::new(chunk_size, path_name); [INFO] [stdout] 6 | | storage.write(vec![0, 1, 2], 0)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } _doctest_main_src_storage_rs_172_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] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - QStorage::closed (line 137) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QStorage` [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use qstorage::QStorage; [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:139:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_137_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_137_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:139:54 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_137_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_137_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:139:64 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_137_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_137_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 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/util.rs - util::parse (line 173) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `join` in this scope [INFO] [stdout] --> src/util.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 3 | join("1+2+3".solit("+").collect()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `solit` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/util.rs:174:14 [INFO] [stdout] | [INFO] [stdout] 3 | join("1+2+3".solit("+").collect()); [INFO] [stdout] | ^^^^^ help: there is an associated function with a similar name: `split` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 25) stdout ---- [INFO] [stdout] Test executable failed (exit code 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/engine.rs - engine::Engine::get (line 172) [INFO] [stdout] src/engine.rs - engine::Engine::insert (line 59) [INFO] [stdout] src/engine.rs - engine::Engine::new (line 40) [INFO] [stdout] src/engine.rs - engine::Engine::remove (line 207) [INFO] [stdout] src/lib.rs - (line 25) [INFO] [stdout] src/lib.rs - QStorage::closed (line 137) [INFO] [stdout] src/lib.rs - QStorage::get (line 165) [INFO] [stdout] src/lib.rs - QStorage::insert (line 152) [INFO] [stdout] src/lib.rs - QStorage::new (line 93) [INFO] [stdout] src/lib.rs - QStorage::ready (line 115) [INFO] [stdout] src/lib.rs - QStorage::remove (line 179) [INFO] [stdout] src/storage.rs - storage::Chunk::from (line 76) [INFO] [stdout] src/storage.rs - storage::Chunk::new (line 60) [INFO] [stdout] src/storage.rs - storage::Storage::create (line 145) [INFO] [stdout] src/storage.rs - storage::Storage::from (line 117) [INFO] [stdout] src/storage.rs - storage::Storage::new (line 99) [INFO] [stdout] src/storage.rs - storage::Storage::read (line 215) [INFO] [stdout] src/storage.rs - storage::Storage::write (line 172) [INFO] [stdout] src/util.rs - util::join (line 145) [INFO] [stdout] src/util.rs - util::parse (line 173) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 20 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.29s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ed96f6734ea464d1fb0e83dcb3a9bb9f24b27862c7f3a83209180496eba28d86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed96f6734ea464d1fb0e83dcb3a9bb9f24b27862c7f3a83209180496eba28d86", kill_on_drop: false }` [INFO] [stdout] ed96f6734ea464d1fb0e83dcb3a9bb9f24b27862c7f3a83209180496eba28d86