[INFO] cloning repository https://github.com/reloginn/cryo-sessions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/reloginn/cryo-sessions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freloginn%2Fcryo-sessions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freloginn%2Fcryo-sessions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f29b72617d37c4b4bbca6a4017563fe6b09df07 [INFO] testing reloginn/cryo-sessions against 1.99.0-beta.8+cargoflags=--release for beta-release-1.100-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Freloginn%2Fcryo-sessions" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/reloginn/cryo-sessions [INFO] finished tweaking git repo https://github.com/reloginn/cryo-sessions [INFO] tweaked toml for git repo https://github.com/reloginn/cryo-sessions written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/reloginn/cryo-sessions on toolchain 1.99.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/reloginn/cryo-sessions already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded syn v2.0.31 [INFO] [stderr] Downloaded redis v0.23.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70 [INFO] running `Command { std: "docker" "start" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling memchr v2.6.3 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling sha1_smol v1.0.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling socket2 v0.5.3 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling combine v4.6.6 [INFO] [stderr] Compiling redis v0.23.3 [INFO] [stderr] Compiling cryo-sessions v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn new_session(&mut self, session: Session, session_info: SessionInfo, duration: Duration) -> RedisResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | .query_async(&mut self.connection) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 36 | .query_async::<_, ()>(&mut self.connection) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 30.51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cryo-sessions v0.0.4 (/opt/rustwide/workdir), redis v0.23.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 7` [INFO] running `Command { std: "docker" "inspect" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling cryo-sessions v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn new_session(&mut self, session: Session, session_info: SessionInfo, duration: Duration) -> RedisResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | .query_async(&mut self.connection) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 36 | .query_async::<_, ()>(&mut self.connection) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/redis.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn new_session(&mut self, session: Session, session_info: SessionInfo, duration: Duration) -> RedisResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/redis.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | .query_async(&mut self.connection) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 36 | .query_async::<_, ()>(&mut self.connection) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cryo-sessions v0.0.4 (/opt/rustwide/workdir), redis v0.23.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 8` [INFO] running `Command { std: "docker" "inspect" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: this function depends on never type fallback being `()` [INFO] [stderr] --> src/redis.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn new_session(&mut self, session: Session, session_info: SessionInfo, duration: Duration) -> RedisResult<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: specify the types explicitly [INFO] [stderr] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stderr] --> src/redis.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | .query_async(&mut self.connection) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] help: use `()` annotations to avoid fallback changes [INFO] [stderr] | [INFO] [stderr] 36 | .query_async::<_, ()>(&mut self.connection) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `cryo-sessions` (lib) generated 1 warning (run `cargo fix --lib -p cryo-sessions` to apply 1 suggestion) [INFO] [stderr] warning: `cryo-sessions` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.07s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cryo-sessions v0.0.4 (/opt/rustwide/workdir), redis v0.23.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 8` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/deps/cryo_sessions-1d1fd07c8938de2b) [INFO] [stderr] Doc-tests cryo_sessions [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/redis.rs - redis::Redis::get_information_by_session (line 43) ... FAILED [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] test src/redis.rs - redis::Redis::new_session (line 25) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/redis.rs - redis::Redis::get_information_by_session (line 43) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/redis.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_redis_rs_43_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 44 | let redis = Redis::from_env().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/redis.rs:45:88 [INFO] [stdout] | [INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_redis_rs_43_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 44 | let redis = Redis::from_env().await?; [INFO] [stdout] 45 | let info = redis.get_information_by_session(Session::from("put into this session id")).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Redis` in this scope [INFO] [stdout] --> src/redis.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let redis = Redis::from_env().await?; [INFO] [stdout] | ^^^^^ use of undeclared type `Redis` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Session` in this scope [INFO] [stdout] --> src/redis.rs:45:45 [INFO] [stdout] | [INFO] [stdout] 45 | let info = redis.get_information_by_session(Session::from("put into this session id")).await?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Session` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Duration` in this scope [INFO] [stdout] --> src/lib.rs:9:91 [INFO] [stdout] | [INFO] [stdout] 9 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Mozilla(5.0)".into()), Duration::from_secs(2400)).await?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Duration` in this scope [INFO] [stdout] --> src/lib.rs:10:91 [INFO] [stdout] | [INFO] [stdout] 10 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Apple Safari".into()), Duration::from_secs(3400)).await?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] 6 | let uuid = Uuid::new(); [INFO] [stdout] 7 | let redis = Redis::from_env().await?; // this method takes the redis url from the REDIS_URL environment variable [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:9:118 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Mozilla(5.0)".into()), Duration::from_secs(2400)).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:10:118 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Apple Safari".into()), Duration::from_secs(3400)).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:11:54 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_5_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | let info = redis.get_information_by_session(session).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Uuid` in this scope [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | let uuid = Uuid::new(); [INFO] [stdout] | ^^^^ use of undeclared type `Uuid` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Redis` in this scope [INFO] [stdout] --> src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let redis = Redis::from_env().await?; // this method takes the redis url from the REDIS_URL environment variable [INFO] [stdout] | ^^^^^ use of undeclared type `Redis` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Session` in this scope [INFO] [stdout] --> src/lib.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | let session = Session::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Session` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `SessionInfo` in this scope [INFO] [stdout] --> src/lib.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Mozilla(5.0)".into()), Duration::from_secs(2400)).await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SessionInfo` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `SessionInfo` in this scope [INFO] [stdout] --> src/lib.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | redis.new_session(session.clone(), SessionInfo::new(uuid.clone(), "Apple Safari".into()), Duration::from_secs(3400)).await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SessionInfo` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/redis.rs - redis::Redis::new_session (line 25) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `Duration` in this scope [INFO] [stdout] --> src/redis.rs:27:89 [INFO] [stdout] | [INFO] [stdout] 27 | redis.new_session(Session::new(), SessionInfo::new(Uuid::new(), "Mozilla(5.0)".into()), Duration::from_secs(3400)).await.is_ok(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/redis.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 25 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_redis_rs_25_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 26 | let redis = Redis::from_env().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/redis.rs:27:116 [INFO] [stdout] | [INFO] [stdout] 25 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_redis_rs_25_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] 26 | let redis = Redis::from_env().await?; [INFO] [stdout] 27 | redis.new_session(Session::new(), SessionInfo::new(Uuid::new(), "Mozilla(5.0)".into()), Duration::from_secs(3400)).await.is_ok(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Redis` in this scope [INFO] [stdout] --> src/redis.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let redis = Redis::from_env().await?; [INFO] [stdout] | ^^^^^ use of undeclared type `Redis` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Session` in this scope [INFO] [stdout] --> src/redis.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | redis.new_session(Session::new(), SessionInfo::new(Uuid::new(), "Mozilla(5.0)".into()), Duration::from_secs(3400)).await.is_ok(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Session` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `SessionInfo` in this scope [INFO] [stdout] --> src/redis.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | redis.new_session(Session::new(), SessionInfo::new(Uuid::new(), "Mozilla(5.0)".into()), Duration::from_secs(3400)).await.is_ok(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SessionInfo` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Uuid` in this scope [INFO] [stdout] --> src/redis.rs:27:52 [INFO] [stdout] | [INFO] [stdout] 27 | redis.new_session(Session::new(), SessionInfo::new(Uuid::new(), "Mozilla(5.0)".into()), Duration::from_secs(3400)).await.is_ok(); [INFO] [stdout] | ^^^^ use of undeclared type `Uuid` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [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/lib.rs - (line 5) [INFO] [stdout] src/redis.rs - redis::Redis::get_information_by_session (line 43) [INFO] [stdout] src/redis.rs - redis::Redis::new_session (line 25) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70", kill_on_drop: false }` [INFO] [stdout] 1edba67a0f8322894f944163850a0ffe9553ea8b07c7343badd60a4ee40d8b70