[INFO] fetching crate memento 0.2.1... [INFO] testing memento-0.2.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate memento 0.2.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate memento 0.2.1 [INFO] finished tweaking crates.io crate memento 0.2.1 [INFO] tweaked toml for crates.io crate memento 0.2.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate memento 0.2.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 22 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 751c3e93a88ff8c65fe3a76853f3f403957ffd00731857cd253f48c02a7c29c1 [INFO] running `Command { std: "docker" "start" "-a" "751c3e93a88ff8c65fe3a76853f3f403957ffd00731857cd253f48c02a7c29c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "751c3e93a88ff8c65fe3a76853f3f403957ffd00731857cd253f48c02a7c29c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "751c3e93a88ff8c65fe3a76853f3f403957ffd00731857cd253f48c02a7c29c1", kill_on_drop: false }` [INFO] [stdout] 751c3e93a88ff8c65fe3a76853f3f403957ffd00731857cd253f48c02a7c29c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f986ec18cf6646be9a8ea7b6c530a019ab01c175fb907aad977a050c60a8926a [INFO] running `Command { std: "docker" "start" "-a" "f986ec18cf6646be9a8ea7b6c530a019ab01c175fb907aad977a050c60a8926a", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling memento v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.24s [INFO] running `Command { std: "docker" "inspect" "f986ec18cf6646be9a8ea7b6c530a019ab01c175fb907aad977a050c60a8926a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f986ec18cf6646be9a8ea7b6c530a019ab01c175fb907aad977a050c60a8926a", kill_on_drop: false }` [INFO] [stdout] f986ec18cf6646be9a8ea7b6c530a019ab01c175fb907aad977a050c60a8926a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 719b2f8690ec0e14b6c9751f55b9da9f97c088e33c8ff80d372d6d1824184612 [INFO] running `Command { std: "docker" "start" "-a" "719b2f8690ec0e14b6c9751f55b9da9f97c088e33c8ff80d372d6d1824184612", kill_on_drop: false }` [INFO] [stderr] Compiling memento v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "719b2f8690ec0e14b6c9751f55b9da9f97c088e33c8ff80d372d6d1824184612", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "719b2f8690ec0e14b6c9751f55b9da9f97c088e33c8ff80d372d6d1824184612", kill_on_drop: false }` [INFO] [stdout] 719b2f8690ec0e14b6c9751f55b9da9f97c088e33c8ff80d372d6d1824184612 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4a29d08fb80b8f443a6d01ebdb2b35ea01c0a4145648804f0f649c263000ff49 [INFO] running `Command { std: "docker" "start" "-a" "4a29d08fb80b8f443a6d01ebdb2b35ea01c0a4145648804f0f649c263000ff49", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/memento-4bb8905b600311c8) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests memento [INFO] [stdout] [INFO] [stdout] running 28 tests [INFO] [stdout] test src/command.rs - command::Decr::new (line 228) ... FAILED [INFO] [stdout] test src/command.rs - command::Append::new (line 156) ... FAILED [INFO] [stdout] test src/command.rs - command::Incr::new (line 210) ... FAILED [INFO] [stdout] test src/command.rs - command::Prepend::new (line 174) ... FAILED [INFO] [stdout] test src/command.rs - command::Item (line 91) ... FAILED [INFO] [stdout] test src/command.rs - command::Replace::new (line 192) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::add (line 64) ... FAILED [INFO] [stdout] test src/command.rs - command::Add::new (line 138) ... FAILED [INFO] [stdout] test src/command.rs - command::Set::new (line 120) ... FAILED [INFO] [stdout] test src/command.rs - command::Item::timeless (line 73) ... ok [INFO] [stdout] test src/command.rs - command::Key (line 18) ... FAILED [INFO] [stdout] test src/lib.rs - new (line 22) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::decr (line 172) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::call (line 262) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::connect (line 34) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::append (line 79) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::from_stream (line 17) ... FAILED [INFO] [stdout] test src/command.rs - command::Item::expires (line 59) ... ok [INFO] [stdout] test src/memento.rs - memento::Memento::delete (line 187) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::replace (line 202) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::prepend (line 94) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::gets (line 133) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::get (line 109) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::version (line 217) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::incr (line 157) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::quit (line 232) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::set (line 49) ... FAILED [INFO] [stdout] test src/memento.rs - memento::Memento::stats (line 247) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/command.rs - command::Decr::new (line 228) 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/command.rs:232:32 [INFO] [stdout] | [INFO] [stdout] 229 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_228_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 232 | let cmd = Decr::new("x".parse()?, 1); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 229 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_228_0() -> Result<(), Box> { [INFO] [stdout] 230 | use memento::Decr; [INFO] [stdout] 231 | [INFO] [stdout] 232 | let cmd = Decr::new("x".parse()?, 1); [INFO] [stdout] 233 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Append::new (line 156) 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/command.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 157 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_156_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 160 | let cmd = Append::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 157 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_156_0() -> Result<(), Box> { [INFO] [stdout] 158 | use memento::{Item, Append}; [INFO] [stdout] 159 | [INFO] [stdout] 160 | let cmd = Append::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] 161 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Incr::new (line 210) 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/command.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 211 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_210_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 214 | let cmd = Incr::new("x".parse()?, 1); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 211 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_210_0() -> Result<(), Box> { [INFO] [stdout] 212 | use memento::Incr; [INFO] [stdout] 213 | [INFO] [stdout] 214 | let cmd = Incr::new("x".parse()?, 1); [INFO] [stdout] 215 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Prepend::new (line 174) 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/command.rs:178:35 [INFO] [stdout] | [INFO] [stdout] 175 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_174_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 178 | let cmd = Prepend::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 175 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_174_0() -> Result<(), Box> { [INFO] [stdout] 176 | use memento::{Item, Prepend}; [INFO] [stdout] 177 | [INFO] [stdout] 178 | let cmd = Prepend::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] 179 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Item (line 91) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/command.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Replace::new (line 192) 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/command.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 193 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_192_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 196 | let cmd = Replace::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 193 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_192_0() -> Result<(), Box> { [INFO] [stdout] 194 | use memento::{Item, Replace}; [INFO] [stdout] 195 | [INFO] [stdout] 196 | let cmd = Replace::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] 197 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::add (line 64) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Add::new (line 138) 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/command.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 139 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_138_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 142 | let cmd = Add::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 139 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_138_0() -> Result<(), Box> { [INFO] [stdout] 140 | use memento::{Item, Add}; [INFO] [stdout] 141 | [INFO] [stdout] 142 | let cmd = Add::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] 143 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Set::new (line 120) 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/command.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 121 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_120_0() { [INFO] [stdout] | --------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 124 | let cmd = Set::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 121 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_command_rs_120_0() -> Result<(), Box> { [INFO] [stdout] 122 | use memento::{Item, Set}; [INFO] [stdout] 123 | [INFO] [stdout] 124 | let cmd = Set::new("x".parse()?, Item::timeless("y")); [INFO] [stdout] 125 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/command.rs - command::Key (line 18) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/command.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - new (line 22) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/lib.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::decr (line 172) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 174 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::call (line 262) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:267:10 [INFO] [stdout] | [INFO] [stdout] 267 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 268 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::connect (line 34) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::append (line 79) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 81 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::from_stream (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::delete (line 187) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::replace (line 202) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:204:10 [INFO] [stdout] | [INFO] [stdout] 204 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::prepend (line 94) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::gets (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 136 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::get (line 109) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:111:10 [INFO] [stdout] | [INFO] [stdout] 111 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::version (line 217) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 219 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:220:1 [INFO] [stdout] | [INFO] [stdout] 220 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::incr (line 157) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:159:10 [INFO] [stdout] | [INFO] [stdout] 159 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:160:1 [INFO] [stdout] | [INFO] [stdout] 160 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::quit (line 232) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:234:10 [INFO] [stdout] | [INFO] [stdout] 234 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 235 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::set (line 49) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memento.rs - memento::Memento::stats (line 247) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/memento.rs:249:10 [INFO] [stdout] | [INFO] [stdout] 249 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/memento.rs:250:1 [INFO] [stdout] | [INFO] [stdout] 250 | async fn main() -> memento::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/command.rs - command::Add::new (line 138) [INFO] [stdout] src/command.rs - command::Append::new (line 156) [INFO] [stdout] src/command.rs - command::Decr::new (line 228) [INFO] [stdout] src/command.rs - command::Incr::new (line 210) [INFO] [stdout] src/command.rs - command::Item (line 91) [INFO] [stdout] src/command.rs - command::Key (line 18) [INFO] [stdout] src/command.rs - command::Prepend::new (line 174) [INFO] [stdout] src/command.rs - command::Replace::new (line 192) [INFO] [stdout] src/command.rs - command::Set::new (line 120) [INFO] [stdout] src/lib.rs - new (line 22) [INFO] [stdout] src/memento.rs - memento::Memento::add (line 64) [INFO] [stdout] src/memento.rs - memento::Memento::append (line 79) [INFO] [stdout] src/memento.rs - memento::Memento::call (line 262) [INFO] [stdout] src/memento.rs - memento::Memento::connect (line 34) [INFO] [stdout] src/memento.rs - memento::Memento::decr (line 172) [INFO] [stdout] src/memento.rs - memento::Memento::delete (line 187) [INFO] [stdout] src/memento.rs - memento::Memento::from_stream (line 17) [INFO] [stdout] src/memento.rs - memento::Memento::get (line 109) [INFO] [stdout] src/memento.rs - memento::Memento::gets (line 133) [INFO] [stdout] src/memento.rs - memento::Memento::incr (line 157) [INFO] [stdout] src/memento.rs - memento::Memento::prepend (line 94) [INFO] [stdout] src/memento.rs - memento::Memento::quit (line 232) [INFO] [stdout] src/memento.rs - memento::Memento::replace (line 202) [INFO] [stdout] src/memento.rs - memento::Memento::set (line 49) [INFO] [stdout] src/memento.rs - memento::Memento::stats (line 247) [INFO] [stdout] src/memento.rs - memento::Memento::version (line 217) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 26 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4a29d08fb80b8f443a6d01ebdb2b35ea01c0a4145648804f0f649c263000ff49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a29d08fb80b8f443a6d01ebdb2b35ea01c0a4145648804f0f649c263000ff49", kill_on_drop: false }` [INFO] [stdout] 4a29d08fb80b8f443a6d01ebdb2b35ea01c0a4145648804f0f649c263000ff49