[INFO] fetching crate qstorage 0.1.0... [INFO] testing qstorage-0.1.0 against 1.44.0 for beta-1.45-1 [INFO] extracting crate qstorage 0.1.0 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate qstorage 0.1.0 on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [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-2/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stdout] aaea6e46907c2c1a11f92f883a989629cba6bb5132f5ac0ecd2628328ef91cac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "aaea6e46907c2c1a11f92f883a989629cba6bb5132f5ac0ecd2628328ef91cac"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling qstorage v0.1.0 (/opt/rustwide/workdir) [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: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.22s [INFO] running `"docker" "inspect" "aaea6e46907c2c1a11f92f883a989629cba6bb5132f5ac0ecd2628328ef91cac"` [INFO] running `"docker" "rm" "-f" "aaea6e46907c2c1a11f92f883a989629cba6bb5132f5ac0ecd2628328ef91cac"` [INFO] [stdout] aaea6e46907c2c1a11f92f883a989629cba6bb5132f5ac0ecd2628328ef91cac [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6fc6713b2d427a09a8a54a879f4a8b9d2327c3d5a6d3553f07642acc83e97a13 [INFO] running `"docker" "start" "-a" "6fc6713b2d427a09a8a54a879f4a8b9d2327c3d5a6d3553f07642acc83e97a13"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling qstorage v0.1.0 (/opt/rustwide/workdir) [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: 1 warning emitted [INFO] [stderr] [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: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `"docker" "inspect" "6fc6713b2d427a09a8a54a879f4a8b9d2327c3d5a6d3553f07642acc83e97a13"` [INFO] running `"docker" "rm" "-f" "6fc6713b2d427a09a8a54a879f4a8b9d2327c3d5a6d3553f07642acc83e97a13"` [INFO] [stdout] 6fc6713b2d427a09a8a54a879f4a8b9d2327c3d5a6d3553f07642acc83e97a13 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 10b6e0261b894579a702f15d27ba0796d3bcd207f198c9c02bd442683e2d35da [INFO] running `"docker" "start" "-a" "10b6e0261b894579a702f15d27ba0796d3bcd207f198c9c02bd442683e2d35da"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Blocking waiting for file lock on package cache [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: 1 warning emitted [INFO] [stderr] [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: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/qstorage-4c617c3c60898726 [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 [INFO] [stdout] [INFO] [stderr] Doc-tests qstorage [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/engine.rs - engine::Engine::new (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::new (line 93) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::get (line 172) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::remove (line 179) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Chunk::new (line 60) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::insert (line 59) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::insert (line 152) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::new (line 99) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::from (line 117) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::get (line 165) ... FAILED [INFO] [stdout] test src/engine.rs - engine::Engine::remove (line 207) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Chunk::from (line 76) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::create (line 145) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::read (line 215) ... FAILED [INFO] [stdout] test src/lib.rs - QStorage::ready (line 115) ... 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/util.rs - util::join (line 145) ... FAILED [INFO] [stdout] test src/storage.rs - storage::Storage::write (line 172) ... FAILED [INFO] [stdout] test src/lib.rs - (line 26) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/engine.rs - engine::Engine::new (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Engine` [INFO] [stdout] --> src/engine.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 4 | Engine::new(dirname, 10737418240, 1048576); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `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/lib.rs - QStorage::new (line 93) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/engine.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | engine.get(String::from("hello"))?; [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/engine.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::remove (line 179) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:181:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | qstorage.remove(String::from("hello"))?; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:183:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::Chunk::new (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Chunk` [INFO] [stdout] --> src/storage.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 4 | Chunk::new(filename, 0); [INFO] [stdout] | ^^^^^ use of undeclared type or module `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/engine.rs - engine::Engine::insert (line 59) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/engine.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::insert (line 152) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::new (line 99) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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/storage.rs - storage::Storage::from (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `Storage` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::get (line 165) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 5 | let mut qstorage = QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | qstorage.get(String::from("hello"))?; [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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/engine.rs - engine::Engine::remove (line 207) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/engine.rs:210:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | engine.remove(String::from("hello"))?; [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/engine.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::Chunk::from (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stdout] --> src/storage.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 4 | let path = Path::new(&filename); [INFO] [stdout] | ^^^^ use of undeclared type or module `Path` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `File` [INFO] [stdout] --> src/storage.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 5 | let mut context = File::open(path); [INFO] [stdout] | ^^^^ use of undeclared type or module `File` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::create (line 145) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `Storage` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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] | | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::read (line 215) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:219:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::ready (line 115) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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::closed (line 137) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `QStorage` [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 4 | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type or module `QStorage` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let dirname = String::from("./storage"); [INFO] [stdout] 4 | | QStorage::new(dirname, 10737418240, 1048576)?.ready()?.closed()?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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/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::Storage::write (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `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 `std::ops::Try`) [INFO] [stdout] --> src/storage.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [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 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 - (line 26) 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 26) [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 [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "10b6e0261b894579a702f15d27ba0796d3bcd207f198c9c02bd442683e2d35da"` [INFO] running `"docker" "rm" "-f" "10b6e0261b894579a702f15d27ba0796d3bcd207f198c9c02bd442683e2d35da"` [INFO] [stdout] 10b6e0261b894579a702f15d27ba0796d3bcd207f198c9c02bd442683e2d35da