[INFO] fetching crate libp2p-episub 0.1.13...
[INFO] testing libp2p-episub-0.1.13 against beta-2023-04-20 for beta-1.70-1
[INFO] extracting crate libp2p-episub 0.1.13 into /workspace/builds/worker-3-tc2/source
[INFO] validating manifest of crates.io crate libp2p-episub 0.1.13 on toolchain beta-2023-04-20
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate libp2p-episub 0.1.13
[INFO] finished tweaking crates.io crate libp2p-episub 0.1.13
[INFO] tweaked toml for crates.io crate libp2p-episub 0.1.13 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded zeroize_derive v1.4.2
[INFO] [stderr]   Downloaded libp2p-swarm v0.33.0
[INFO] [stderr]   Downloaded rw-stream-sink v0.2.1
[INFO] [stderr]   Downloaded asn1_der v0.7.6
[INFO] [stderr]   Downloaded multiaddr v0.13.0
[INFO] [stderr]   Downloaded asynchronous-codec v0.6.1
[INFO] [stderr]   Downloaded libp2p-core v0.31.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e7938cd5ddb5e96b600f03c5903aa79234be5d5912bb827675073be673144aa2
[INFO] running `Command { std: "docker" "start" "-a" "e7938cd5ddb5e96b600f03c5903aa79234be5d5912bb827675073be673144aa2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e7938cd5ddb5e96b600f03c5903aa79234be5d5912bb827675073be673144aa2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e7938cd5ddb5e96b600f03c5903aa79234be5d5912bb827675073be673144aa2", kill_on_drop: false }`
[INFO] [stdout] e7938cd5ddb5e96b600f03c5903aa79234be5d5912bb827675073be673144aa2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] dd239b6630163e037ce44803ae0e75067bc46ca060f8260926182b09f0c0f103
[INFO] running `Command { std: "docker" "start" "-a" "dd239b6630163e037ce44803ae0e75067bc46ca060f8260926182b09f0c0f103", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling unicode-ident v1.0.8
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling typenum v1.16.0
[INFO] [stderr]    Compiling libc v0.2.142
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling subtle v2.4.1
[INFO] [stderr]    Compiling either v1.8.1
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]    Compiling hashbrown v0.12.3
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling anyhow v1.0.71
[INFO] [stderr]    Compiling pin-project-lite v0.2.9
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling futures-sink v0.3.28
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling io-lifetimes v1.0.10
[INFO] [stderr]    Compiling futures-io v0.3.28
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling rustix v0.37.18
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling bytes v1.4.0
[INFO] [stderr]    Compiling linux-raw-sys v0.3.6
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling cpufeatures v0.2.7
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling aho-corasick v1.0.1
[INFO] [stderr]    Compiling unicode-segmentation v1.10.1
[INFO] [stderr]    Compiling regex-syntax v0.7.1
[INFO] [stderr]    Compiling syn v2.0.15
[INFO] [stderr]    Compiling getrandom v0.2.9
[INFO] [stderr]    Compiling fastrand v1.9.0
[INFO] [stderr]    Compiling fixedbitset v0.4.2
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling serde_derive v1.0.160
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling opaque-debug v0.3.0
[INFO] [stderr]    Compiling once_cell v1.17.1
[INFO] [stderr]    Compiling which v4.4.0
[INFO] [stderr]    Compiling petgraph v0.6.3
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling winnow v0.4.4
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling multimap v0.8.3
[INFO] [stderr]    Compiling serde v1.0.160
[INFO] [stderr]    Compiling prost-build v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling libsecp256k1-core v0.3.0
[INFO] [stderr]    Compiling toml_datetime v0.6.1
[INFO] [stderr]    Compiling const-oid v0.7.1
[INFO] [stderr]    Compiling sha2 v0.9.9
[INFO] [stderr]    Compiling signature v1.4.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling der v0.5.1
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling crypto-mac v0.11.1
[INFO] [stderr]    Compiling ff v0.11.1
[INFO] [stderr]    Compiling num_cpus v1.15.0
[INFO] [stderr]    Compiling pin-project-internal v0.4.30
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]    Compiling regex v1.8.1
[INFO] [stderr]    Compiling libsecp256k1-gen-genmult v0.3.0
[INFO] [stderr]    Compiling libsecp256k1-gen-ecmult v0.3.0
[INFO] [stderr]    Compiling group v0.11.0
[INFO] [stderr]    Compiling hmac v0.11.0
[INFO] [stderr]    Compiling crypto-mac v0.8.0
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling base16ct v0.1.1
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling smallvec v1.10.0
[INFO] [stderr]    Compiling percent-encoding v2.2.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling form_urlencoded v1.1.0
[INFO] [stderr]    Compiling hmac v0.8.1
[INFO] [stderr]    Compiling libsecp256k1 v0.7.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling tempfile v3.5.0
[INFO] [stderr]    Compiling toml_edit v0.19.8
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling idna v0.3.0
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]    Compiling arrayref v0.3.7
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling digest v0.10.6
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling hmac-drbg v0.3.0
[INFO] [stderr]    Compiling url v2.3.1
[INFO] [stderr]    Compiling ed25519 v1.5.3
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling bs58 v0.4.0
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling data-encoding v2.3.3
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling sha2 v0.10.6
[INFO] [stderr]    Compiling asn1_der v0.7.6
[INFO] [stderr]    Compiling futures-timer v3.0.2
[INFO] [stderr]    Compiling void v1.0.2
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]    Compiling proc-macro-crate v1.3.1
[INFO] [stderr]    Compiling tracing-core v0.1.30
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling futures-macro v0.3.28
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling tracing-attributes v0.1.24
[INFO] [stderr]    Compiling prost-derive v0.9.0
[INFO] [stderr]    Compiling multihash-derive v0.7.2
[INFO] [stderr]    Compiling pin-project-internal v1.0.12
[INFO] [stderr]    Compiling zeroize v1.3.0
[INFO] [stderr]    Compiling crypto-bigint v0.3.2
[INFO] [stderr]    Compiling sec1 v0.2.1
[INFO] [stderr]    Compiling curve25519-dalek v3.2.1
[INFO] [stderr]    Compiling tracing v0.1.37
[INFO] [stderr]    Compiling pin-project v1.0.12
[INFO] [stderr]    Compiling rfc6979 v0.1.0
[INFO] [stderr]    Compiling elliptic-curve v0.11.12
[INFO] [stderr]    Compiling pin-project v0.4.30
[INFO] [stderr]    Compiling ecdsa v0.13.4
[INFO] [stderr]    Compiling prost v0.9.0
[INFO] [stderr]    Compiling p256 v0.10.1
[INFO] [stderr]    Compiling prost-types v0.9.0
[INFO] [stderr]    Compiling asynchronous-codec v0.6.1
[INFO] [stderr]    Compiling futures-executor v0.3.28
[INFO] [stderr]    Compiling libp2p-core v0.31.1
[INFO] [stderr]    Compiling libp2p-episub v0.1.13 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling unsigned-varint v0.7.1
[INFO] [stderr]    Compiling futures v0.3.28
[INFO] [stderr]    Compiling rw-stream-sink v0.2.1
[INFO] [stderr]    Compiling multihash v0.14.0
[INFO] [stderr]    Compiling multistream-select v0.11.0
[INFO] [stderr]    Compiling multiaddr v0.13.0
[INFO] [stderr]    Compiling ed25519-dalek v1.0.1
[INFO] [stderr]    Compiling libp2p-swarm v0.33.0
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 25.42s
[INFO] running `Command { std: "docker" "inspect" "dd239b6630163e037ce44803ae0e75067bc46ca060f8260926182b09f0c0f103", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dd239b6630163e037ce44803ae0e75067bc46ca060f8260926182b09f0c0f103", kill_on_drop: false }`
[INFO] [stdout] dd239b6630163e037ce44803ae0e75067bc46ca060f8260926182b09f0c0f103
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 64ea590e8d7c87bd402d481e7c91015430cb5be84458c81d853c4c5a264c44b0
[INFO] running `Command { std: "docker" "start" "-a" "64ea590e8d7c87bd402d481e7c91015430cb5be84458c81d853c4c5a264c44b0", kill_on_drop: false }`
[INFO] [stderr]    Compiling libp2p-episub v0.1.13 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 1.18s
[INFO] running `Command { std: "docker" "inspect" "64ea590e8d7c87bd402d481e7c91015430cb5be84458c81d853c4c5a264c44b0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "64ea590e8d7c87bd402d481e7c91015430cb5be84458c81d853c4c5a264c44b0", kill_on_drop: false }`
[INFO] [stdout] 64ea590e8d7c87bd402d481e7c91015430cb5be84458c81d853c4c5a264c44b0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] fb03d16e16cf213c08892ae06a9abe1757751b9a0c292c04f3d0b23efbc5507c
[INFO] running `Command { std: "docker" "start" "-a" "fb03d16e16cf213c08892ae06a9abe1757751b9a0c292c04f3d0b23efbc5507c", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.19s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/libp2p_episub-b07c34c29523b2bb)
[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] [stderr]    Doc-tests libp2p-episub
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/lib.rs - (line 18) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 18) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `while`
[INFO] [stdout]   --> src/lib.rs:33:31
[INFO] [stdout]    |
[INFO] [stdout] 17 | swarm.dial(bootstrap).unwrap()
[INFO] [stdout]    |                               ^ help: add `;` here
[INFO] [stdout] 18 |
[INFO] [stdout] 19 | while let Some(event) = swarm.next().await {
[INFO] [stdout]    | ----- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent`
[INFO] [stdout]   --> src/lib.rs:37:6
[INFO] [stdout]    |
[INFO] [stdout] 21 |      SwarmEvent::Behaviour(EpisubEvent::Message(m, t)) => {
[INFO] [stdout]    |      ^^^^^^^^^^ use of undeclared type `SwarmEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent`
[INFO] [stdout]   --> src/lib.rs:37:28
[INFO] [stdout]    |
[INFO] [stdout] 21 |      SwarmEvent::Behaviour(EpisubEvent::Message(m, t)) => {
[INFO] [stdout]    |                            ^^^^^^^^^^^ use of undeclared type `EpisubEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent`
[INFO] [stdout]   --> src/lib.rs:40:6
[INFO] [stdout]    |
[INFO] [stdout] 24 |      SwarmEvent::Behaviour(EpisubEvent::Subscribed(t)) => {}
[INFO] [stdout]    |      ^^^^^^^^^^ use of undeclared type `SwarmEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent`
[INFO] [stdout]   --> src/lib.rs:40:28
[INFO] [stdout]    |
[INFO] [stdout] 24 |      SwarmEvent::Behaviour(EpisubEvent::Subscribed(t)) => {}
[INFO] [stdout]    |                            ^^^^^^^^^^^ use of undeclared type `EpisubEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent`
[INFO] [stdout]   --> src/lib.rs:41:6
[INFO] [stdout]    |
[INFO] [stdout] 25 |      SwarmEvent::Behaviour(EpisubEvent::Unsubscribed(t)) => {}
[INFO] [stdout]    |      ^^^^^^^^^^ use of undeclared type `SwarmEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent`
[INFO] [stdout]   --> src/lib.rs:41:28
[INFO] [stdout]    |
[INFO] [stdout] 25 |      SwarmEvent::Behaviour(EpisubEvent::Unsubscribed(t)) => {}
[INFO] [stdout]    |                            ^^^^^^^^^^^ use of undeclared type `EpisubEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent`
[INFO] [stdout]   --> src/lib.rs:42:6
[INFO] [stdout]    |
[INFO] [stdout] 26 |      SwarmEvent::Behaviour(EpisubEvent::ActivePeerAdded(p)) => {}
[INFO] [stdout]    |      ^^^^^^^^^^ use of undeclared type `SwarmEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent`
[INFO] [stdout]   --> src/lib.rs:42:28
[INFO] [stdout]    |
[INFO] [stdout] 26 |      SwarmEvent::Behaviour(EpisubEvent::ActivePeerAdded(p)) => {}
[INFO] [stdout]    |                            ^^^^^^^^^^^ use of undeclared type `EpisubEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent`
[INFO] [stdout]   --> src/lib.rs:43:6
[INFO] [stdout]    |
[INFO] [stdout] 27 |      SwarmEvent::Behaviour(EpisubEvent::ActivePeerRemoved(p)) => {}
[INFO] [stdout]    |      ^^^^^^^^^^ use of undeclared type `SwarmEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EpisubEvent`
[INFO] [stdout]   --> src/lib.rs:43:28
[INFO] [stdout]    |
[INFO] [stdout] 27 |      SwarmEvent::Behaviour(EpisubEvent::ActivePeerRemoved(p)) => {}
[INFO] [stdout]    |                            ^^^^^^^^^^^ use of undeclared type `EpisubEvent`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `identity`
[INFO] [stdout]  --> src/lib.rs:19:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let local_key = identity::Keypair::generate_ed25519();
[INFO] [stdout]   |                 ^^^^^^^^ use of undeclared crate or module `identity`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_core::identity::Keypair;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_core::identity::ecdsa::Keypair;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_core::identity::ed25519::Keypair;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_core::identity::rsa::Keypair;
[INFO] [stdout]   |
[INFO] [stdout]     and 1 other candidate
[INFO] [stdout] help: if you import `Keypair`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 3 - let local_key = identity::Keypair::generate_ed25519();
[INFO] [stdout] 3 + let local_key = Keypair::generate_ed25519();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PeerId`
[INFO] [stdout]  --> src/lib.rs:20:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | let local_peer_id = PeerId::from(local_key.public());
[INFO] [stdout]   |                     ^^^^^^ use of undeclared type `PeerId`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_core::PeerId;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p`
[INFO] [stdout]  --> src/lib.rs:24:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | let mut swarm = libp2p::Swarm::new(transport, Episub::new(), local_peer_id);
[INFO] [stdout]   |                 ^^^^^^ use of undeclared crate or module `libp2p`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_swarm::Swarm;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Swarm`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 8 - let mut swarm = libp2p::Swarm::new(transport, Episub::new(), local_peer_id);
[INFO] [stdout] 8 + let mut swarm = Swarm::new(transport, Episub::new(), local_peer_id);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Episub`
[INFO] [stdout]  --> src/lib.rs:24:47
[INFO] [stdout]   |
[INFO] [stdout] 8 | let mut swarm = libp2p::Swarm::new(transport, Episub::new(), local_peer_id);
[INFO] [stdout]   |                                               ^^^^^^ use of undeclared type `Episub`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use libp2p_episub::Episub;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `opts` in this scope
[INFO] [stdout]   --> src/lib.rs:32:33
[INFO] [stdout]    |
[INFO] [stdout] 16 | swarm.behaviour_mut().subscribe(opts.topic);
[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:21:65
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let transport = libp2p::development_transport(local_key.clone()).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:35:37
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() {
[INFO] [stdout]    |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | while let Some(event) = swarm.next().await {
[INFO] [stdout]    |                                     ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p`
[INFO] [stdout]  --> src/lib.rs:21:17
[INFO] [stdout]   |
[INFO] [stdout] 5 | let transport = libp2p::development_transport(local_key.clone()).await?;
[INFO] [stdout]   |                 ^^^^^^ use of undeclared crate or module `libp2p`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:21:71
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_18_0() {
[INFO] [stdout]   |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 5 | let transport = libp2p::development_transport(local_key.clone()).await?;
[INFO] [stdout]   |                                                                       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 20 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 18)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "fb03d16e16cf213c08892ae06a9abe1757751b9a0c292c04f3d0b23efbc5507c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fb03d16e16cf213c08892ae06a9abe1757751b9a0c292c04f3d0b23efbc5507c", kill_on_drop: false }`
[INFO] [stdout] fb03d16e16cf213c08892ae06a9abe1757751b9a0c292c04f3d0b23efbc5507c
