[INFO] fetching crate syndicus 0.3.1... [INFO] testing syndicus-0.3.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate syndicus 0.3.1 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate syndicus 0.3.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate syndicus 0.3.1 [INFO] tweaked toml for crates.io crate syndicus 0.3.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate syndicus 0.3.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate syndicus 0.3.1 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c477a9ae09f7335bbeb64a35807d7f54f1c074cfebc0e0c88bf7a74ba4c0798 [INFO] running `Command { std: "docker" "start" "-a" "4c477a9ae09f7335bbeb64a35807d7f54f1c074cfebc0e0c88bf7a74ba4c0798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c477a9ae09f7335bbeb64a35807d7f54f1c074cfebc0e0c88bf7a74ba4c0798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c477a9ae09f7335bbeb64a35807d7f54f1c074cfebc0e0c88bf7a74ba4c0798", kill_on_drop: false }` [INFO] [stdout] 4c477a9ae09f7335bbeb64a35807d7f54f1c074cfebc0e0c88bf7a74ba4c0798 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e7b0cb42243f97da51b200f298329461d4f84363ed74061e99d678de827ecfb [INFO] running `Command { std: "docker" "start" "-a" "1e7b0cb42243f97da51b200f298329461d4f84363ed74061e99d678de827ecfb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling syndicus v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.81s [INFO] running `Command { std: "docker" "inspect" "1e7b0cb42243f97da51b200f298329461d4f84363ed74061e99d678de827ecfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e7b0cb42243f97da51b200f298329461d4f84363ed74061e99d678de827ecfb", kill_on_drop: false }` [INFO] [stdout] 1e7b0cb42243f97da51b200f298329461d4f84363ed74061e99d678de827ecfb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f59d13c65b48e3b64d93805c29c752c4d77655b296757bff6cc698ec86eeb22 [INFO] running `Command { std: "docker" "start" "-a" "0f59d13c65b48e3b64d93805c29c752c4d77655b296757bff6cc698ec86eeb22", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling syndicus v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 22.75s [INFO] running `Command { std: "docker" "inspect" "0f59d13c65b48e3b64d93805c29c752c4d77655b296757bff6cc698ec86eeb22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f59d13c65b48e3b64d93805c29c752c4d77655b296757bff6cc698ec86eeb22", kill_on_drop: false }` [INFO] [stdout] 0f59d13c65b48e3b64d93805c29c752c4d77655b296757bff6cc698ec86eeb22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ef1fc83da7281d458905cdf4c90c12e0bfbf6b90ca143cdbf6e8bcce573e093c [INFO] running `Command { std: "docker" "start" "-a" "ef1fc83da7281d458905cdf4c90c12e0bfbf6b90ca143cdbf6e8bcce573e093c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/syndicus-c0b09b4bf5b706f5) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test syndicate::test::test_snapshot ... ok [INFO] [stdout] test syndicate::test::test_subscribe_at ... ok [INFO] [stdout] test syndicate::test::test_compaction ... ok [INFO] [stdout] test syndicate::test::test_interleaved ... ok [INFO] [stdout] test scope::test::test_simple_scope ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] Doc-tests syndicus [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 85) ... FAILED [INFO] [stdout] test src/lib.rs - (line 114) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - (line 43) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 85) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Compactable` in this scope [INFO] [stdout] --> src/lib.rs:86:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl Compactable for Message { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use syndicus::Compactable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> src/lib.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 3 | impl Compactable for Message { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Discriminant` in this scope [INFO] [stdout] --> src/lib.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 4 | type Key = Discriminant; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::mem::Discriminant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `discriminant` in this scope [INFO] [stdout] --> src/lib.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 6 | discriminant(self) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: try calling `discriminant` as a method [INFO] [stdout] | [INFO] [stdout] 6 - discriminant(self) [INFO] [stdout] 6 + self.discriminant() [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::mem::discriminant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 114) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `scope` in this scope [INFO] [stdout] --> src/lib.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 4 | scope(|local| { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::thread::scope; [INFO] [stdout] | [INFO] [stdout] 2 + use syndicus::scope; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `syndicate` in this scope [INFO] [stdout] --> src/lib.rs:117:29 [INFO] [stdout] | [INFO] [stdout] 5 | local.spawn(temp_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `syndicate` in this scope [INFO] [stdout] --> src/lib.rs:118:29 [INFO] [stdout] | [INFO] [stdout] 6 | local.spawn(volt_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `syndicate` in this scope [INFO] [stdout] --> src/lib.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 7 | local.spawn(temp_monitor(syndicate.subscribe())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:122:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_114_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `temp_sensor` in this scope [INFO] [stdout] --> src/lib.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 5 | local.spawn(temp_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `volt_sensor` in this scope [INFO] [stdout] --> src/lib.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 6 | local.spawn(volt_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `temp_monitor` in this scope [INFO] [stdout] --> src/lib.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 7 | local.spawn(temp_monitor(syndicate.subscribe())); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 22) stdout ---- [INFO] [stdout] error: cannot find derive macro `From` in this scope [INFO] [stdout] --> src/lib.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Clone, From, TryInto)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `From` is in scope, but it is only a trait, without a derive macro [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 2 + use std::from::From; [INFO] [stdout] | [INFO] [stdout] 2 + use derive_more::From; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `TryInto` in this scope [INFO] [stdout] --> src/lib.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Clone, From, TryInto)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TryInto` is in scope, but it is only a trait, without a derive macro [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use derive_more::TryInto; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Syndicate` in this scope [INFO] [stdout] --> src/lib.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 18 | let syndicate: Syndicate = Default::default(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use syndicus::Syndicate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 43) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Publisher` in this scope [INFO] [stdout] --> src/lib.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use syndicus::Publisher; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> src/lib.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Temperature` in this scope [INFO] [stdout] --> src/lib.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `t` in this scope [INFO] [stdout] --> src/lib.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 8 | p.push(Temperature(t)).await; [INFO] [stdout] | ^ help: a local variable with a similar name exists: `p` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Subscription` in this scope [INFO] [stdout] --> src/lib.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use syndicus::Subscription; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> src/lib.rs:54:43 [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Temperature` in this scope [INFO] [stdout] --> src/lib.rs:54:52 [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Temperature` in this scope [INFO] [stdout] --> src/lib.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 15 | while let Some(Temperature(t)) = s.pull().await { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/lib.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 21 | spawn(temp_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `syndicate` in this scope [INFO] [stdout] --> src/lib.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 21 | spawn(temp_sensor(syndicate.publish())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/lib.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 22 | spawn(temp_monitor(syndicate.subscribe())); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `syndicate` in this scope [INFO] [stdout] --> src/lib.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 22 | spawn(temp_monitor(syndicate.subscribe())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:45:61 [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 4 | async fn temp_sensor(p: Publisher) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:54:69 [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 13 | async fn temp_monitor(mut s: Subscription) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Temperature` in this scope [INFO] [stdout] --> src/lib.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 8 | p.push(Temperature(t)).await; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 114) [INFO] [stdout] src/lib.rs - (line 22) [INFO] [stdout] src/lib.rs - (line 43) [INFO] [stdout] src/lib.rs - (line 85) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ef1fc83da7281d458905cdf4c90c12e0bfbf6b90ca143cdbf6e8bcce573e093c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef1fc83da7281d458905cdf4c90c12e0bfbf6b90ca143cdbf6e8bcce573e093c", kill_on_drop: false }` [INFO] [stdout] ef1fc83da7281d458905cdf4c90c12e0bfbf6b90ca143cdbf6e8bcce573e093c