[INFO] updating cached repository https://github.com/daogangtang/learn-libp2p
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 5af80970091694cf447984cdcdcedf270a9d0702
[INFO] testing daogangtang/learn-libp2p against 1.40.0 for beta-1.41-1
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaogangtang%2Flearn-libp2p" "/workspace/builds/worker-7/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/daogangtang/learn-libp2p on toolchain 1.40.0
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started tweaking git repo https://github.com/daogangtang/learn-libp2p
[INFO] removed path dependency libp2p from git repo https://github.com/daogangtang/learn-libp2p
[INFO] finished tweaking git repo https://github.com/daogangtang/learn-libp2p
[INFO] tweaked toml for git repo https://github.com/daogangtang/learn-libp2p written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/daogangtang/learn-libp2p already has a lockfile, it will not be regenerated
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr] error: the lock file /workspace/builds/worker-7/source/Cargo.lock needs to be updated but --locked was passed to prevent this
[INFO] the lockfile is outdated, regenerating it
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/workspace/cargo-home/bin/cargo" "+1.40.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.40.0" "build" "--frozen"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] cbcc2b5fee9108aef2db54d6592441b043ad263d69dfb6decf640047ee649eb9
[INFO] running `"docker" "start" "-a" "cbcc2b5fee9108aef2db54d6592441b043ad263d69dfb6decf640047ee649eb9"`
[INFO] [stderr] warning: dependency (libp2p) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling subtle v2.2.2
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling keccak v0.1.0
[INFO] [stderr]    Compiling protobuf v2.8.1
[INFO] [stderr]    Compiling zeroize v1.1.0
[INFO] [stderr]    Compiling bs58 v0.3.0
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.56
[INFO] [stderr]    Compiling wasm-bindgen v0.2.56
[INFO] [stderr]    Compiling syn v0.15.44
[INFO] [stderr]    Compiling c_linked_list v1.1.1
[INFO] [stderr]    Compiling static_assertions v1.1.0
[INFO] [stderr]    Compiling nohash-hasher v0.1.2
[INFO] [stderr]    Compiling rustc-hex v2.0.1
[INFO] [stderr]    Compiling parity-send-wrapper v0.1.0
[INFO] [stderr]    Compiling arrayvec v0.5.1
[INFO] [stderr]    Compiling ipnet v2.1.0
[INFO] [stderr]    Compiling ring v0.16.9
[INFO] [stderr]    Compiling clear_on_drop v0.2.3
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling tokio v0.2.6
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling get_if_addrs v0.5.3
[INFO] [stderr]    Compiling parking_lot_core v0.5.0
[INFO] [stderr]    Compiling snow v0.6.2
[INFO] [stderr]    Compiling parking_lot v0.8.0
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling block-cipher-trait v0.6.2
[INFO] [stderr]    Compiling stream-cipher v0.3.2
[INFO] [stderr]    Compiling wasm-timer v0.1.3
[INFO] [stderr]    Compiling cuckoofilter v0.3.2
[INFO] [stderr]    Compiling blake2 v0.8.1
[INFO] [stderr]    Compiling bytes v0.4.12
[INFO] [stderr]    Compiling block-buffer v0.7.3
[INFO] [stderr]    Compiling curve25519-dalek v2.0.0
[INFO] [stderr]    Compiling base64 v0.10.1
[INFO] [stderr]    Compiling dns-parser v0.8.0
[INFO] [stderr]    Compiling uint v0.8.2
[INFO] [stderr]    Compiling aes-soft v0.3.3
[INFO] [stderr]    Compiling twofish v0.2.0
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling asn1_der_derive v0.1.2
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.56
[INFO] [stderr]    Compiling env_logger v0.7.1
[INFO] [stderr]    Compiling ctr v0.3.2
[INFO] [stderr]    Compiling hmac-drbg v0.2.0
[INFO] [stderr]    Compiling curve25519-dalek v1.2.3
[INFO] [stderr]    Compiling sha2 v0.8.0
[INFO] [stderr]    Compiling sha-1 v0.8.1
[INFO] [stderr]    Compiling sha3 v0.8.2
[INFO] [stderr]    Compiling tokio-io v0.1.12
[INFO] [stderr]    Compiling http v0.1.21
[INFO] [stderr]    Compiling aes-ctr v0.3.0
[INFO] [stderr]    Compiling ed25519-dalek v1.0.0-pre.3
[INFO] [stderr]    Compiling libsecp256k1 v0.3.3
[INFO] [stderr]    Compiling asn1_der v0.6.3
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.56
[INFO] [stderr]    Compiling tokio-threadpool v0.1.17
[INFO] [stderr]    Compiling tokio-codec v0.1.1
[INFO] [stderr]    Compiling rw-stream-sink v0.1.2
[INFO] [stderr]    Compiling tokio-reactor v0.1.11
[INFO] [stderr]    Compiling flate2 v1.0.13
[INFO] [stderr]    Compiling tokio-stdin-stdout v0.1.5
[INFO] [stderr]    Compiling webpki v0.21.0
[INFO] [stderr]    Compiling sct v0.6.0
[INFO] [stderr]    Compiling tokio-fs v0.1.6
[INFO] [stderr]    Compiling unsigned-varint v0.2.3
[INFO] [stderr]    Compiling yamux v0.2.2
[INFO] [stderr]    Compiling tokio-uds v0.2.5
[INFO] [stderr]    Compiling tokio-udp v0.1.5
[INFO] [stderr]    Compiling tokio-tcp v0.1.3
[INFO] [stderr]    Compiling libp2p-core-derive v0.13.0
[INFO] [stderr]    Compiling soketto v0.2.3
[INFO] [stderr]    Compiling rustls v0.16.0
[INFO] [stderr]    Compiling webpki-roots v0.18.0
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.56
[INFO] [stderr]    Compiling x25519-dalek v0.5.2
[INFO] [stderr]    Compiling parity-multihash v0.2.0
[INFO] [stderr]    Compiling multistream-select v0.6.1
[INFO] [stderr]    Compiling tokio v0.1.22
[INFO] [stderr]    Compiling parity-multiaddr v0.6.0
[INFO] [stderr]    Compiling tokio-dns-unofficial v0.4.0
[INFO] [stderr]    Compiling libp2p-core v0.13.1
[INFO] [stderr]    Compiling js-sys v0.3.33
[INFO] [stderr]    Compiling tokio-rustls v0.10.2
[INFO] [stderr]    Compiling libp2p-swarm v0.3.0
[INFO] [stderr]    Compiling libp2p-plaintext v0.13.0
[INFO] [stderr]    Compiling libp2p-secio v0.13.0
[INFO] [stderr]    Compiling libp2p-uds v0.13.0
[INFO] [stderr]    Compiling libp2p-tcp v0.13.0
[INFO] [stderr]    Compiling libp2p-dns v0.13.0
[INFO] [stderr]    Compiling libp2p-mplex v0.13.0
[INFO] [stderr]    Compiling libp2p-yamux v0.13.0
[INFO] [stderr]    Compiling libp2p-websocket v0.13.0
[INFO] [stderr]    Compiling libp2p-deflate v0.5.0
[INFO] [stderr]    Compiling libp2p-noise v0.11.0
[INFO] [stderr]    Compiling wasm-bindgen-futures v0.3.27
[INFO] [stderr]    Compiling libp2p-kad v0.13.1
[INFO] [stderr]    Compiling libp2p-mdns v0.13.1
[INFO] [stderr]    Compiling libp2p-ping v0.13.1
[INFO] [stderr]    Compiling libp2p-floodsub v0.13.0
[INFO] [stderr]    Compiling libp2p-identify v0.13.1
[INFO] [stderr]    Compiling libp2p-wasm-ext v0.6.0
[INFO] [stderr]    Compiling libp2p v0.13.1
[INFO] [stderr]    Compiling learn-libp2p v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stderr]  --> src/ping_client.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stderr]  --> src/ping_client.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpStream;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Future`, `Stream`
[INFO] [stderr]  --> src/ping_client.rs:7:15
[INFO] [stderr]   |
[INFO] [stderr] 7 | use futures::{Future, Stream};
[INFO] [stderr]   |               ^^^^^^  ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `InboundUpgrade`
[INFO] [stderr]  --> src/ping_client.rs:8:29
[INFO] [stderr]   |
[INFO] [stderr] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stderr]   |                             ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stderr]   --> src/ping_client.rs:15:20
[INFO] [stderr]    |
[INFO] [stderr] 15 |             Ping::<()>::default().upgrade_outbound(c, b"/ipfs/ping/1.0.0")
[INFO] [stderr]    |                    ^^ unexpected type argument
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 3 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0107, E0432.
[INFO] [stderr] For more information about an error, try `rustc --explain E0107`.
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio`
[INFO] [stderr]   --> src/chat.rs:70:28
[INFO] [stderr]    |
[INFO] [stderr] 70 |     let local_key = secio::SecioKeyPair::ed25519_generated().unwrap();
[INFO] [stderr]    |                            ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `swarm` in `core`
[INFO] [stderr]   --> src/chat.rs:97:112
[INFO] [stderr]    |
[INFO] [stderr] 97 |         fn on_floodsub<TTopology>(&mut self, message: <libp2p::floodsub::Floodsub<TSubstream> as libp2p::core::swarm::NetworkBehaviour<TTopology>>::OutEvent)
[INFO] [stderr]    |                                                                                                                ^^^^^ could not find `swarm` in `core`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stderr]    --> src/chat.rs:112:64
[INFO] [stderr]     |
[INFO] [stderr] 112 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]     |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:141:17
[INFO] [stderr]     |
[INFO] [stderr] 141 |                 Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()),
[INFO] [stderr]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:142:17
[INFO] [stderr]     |
[INFO] [stderr] 142 |                 Async::Ready(None) => panic!("Stdin closed"),
[INFO] [stderr]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:143:17
[INFO] [stderr]     |
[INFO] [stderr] 143 |                 Async::NotReady => break,
[INFO] [stderr]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:149:17
[INFO] [stderr]     |
[INFO] [stderr] 149 |                 Async::Ready(Some(_)) => {
[INFO] [stderr]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:152:17
[INFO] [stderr]     |
[INFO] [stderr] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]     |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:152:38
[INFO] [stderr]     |
[INFO] [stderr] 152 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]     |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]    --> src/chat.rs:156:12
[INFO] [stderr]     |
[INFO] [stderr] 156 |         Ok(Async::NotReady)
[INFO] [stderr]     |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stderr]    --> src/chat.rs:138:12
[INFO] [stderr]     |
[INFO] [stderr] 138 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]     |            ^^^ not found in `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0603]: struct `CommonTransport` is private
[INFO] [stderr]   --> src/chat.rs:75:29
[INFO] [stderr]    |
[INFO] [stderr] 75 |     let transport = libp2p::CommonTransport::new()
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio`
[INFO] [stderr]   --> src/ping_client3.rs:21:28
[INFO] [stderr]    |
[INFO] [stderr] 21 |     let local_key = secio::SecioKeyPair::ed25519_generated().unwrap();
[INFO] [stderr]    |                            ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stderr]   --> src/ping_client3.rs:39:39
[INFO] [stderr]    |
[INFO] [stderr] 39 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stderr]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stderr]   --> src/ping_client3.rs:41:64
[INFO] [stderr]    |
[INFO] [stderr] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client3.rs:69:17
[INFO] [stderr]    |
[INFO] [stderr] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client3.rs:72:17
[INFO] [stderr]    |
[INFO] [stderr] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client3.rs:72:38
[INFO] [stderr]    |
[INFO] [stderr] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client3.rs:76:12
[INFO] [stderr]    |
[INFO] [stderr] 76 |         Ok(Async::NotReady)
[INFO] [stderr]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stderr]   --> src/ping_client3.rs:79:12
[INFO] [stderr]    |
[INFO] [stderr] 79 |     tokio::run(task);
[INFO] [stderr]    |            ^^^ not found in `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0603]: struct `CommonTransport` is private
[INFO] [stderr]   --> src/ping_client3.rs:26:29
[INFO] [stderr]    |
[INFO] [stderr] 26 |     let transport = libp2p::CommonTransport::new()
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio`
[INFO] [stderr]   --> src/ping_client2.rs:19:28
[INFO] [stderr]    |
[INFO] [stderr] 19 |     let local_key = secio::SecioKeyPair::ed25519_generated().unwrap();
[INFO] [stderr]    |                            ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `PeriodicPing` in `ping`
[INFO] [stderr]   --> src/ping_client2.rs:34:39
[INFO] [stderr]    |
[INFO] [stderr] 34 |         let behaviour = libp2p::ping::PeriodicPing::new();
[INFO] [stderr]    |                                       ^^^^^^^^^^^^ could not find `PeriodicPing` in `ping`
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stderr]   --> src/ping_client3.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr] 8  |     NetworkBehaviour, Transport,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 11 |     mplex,
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr] 12 |     yamux,
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stderr]    |                   ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stderr]   --> src/ping_client2.rs:36:64
[INFO] [stderr]    |
[INFO] [stderr] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client2.rs:64:17
[INFO] [stderr]    |
[INFO] [stderr] 64 |                 Async::Ready(Some(x)) => {
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client2.rs:67:17
[INFO] [stderr]    |
[INFO] [stderr] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client2.rs:67:38
[INFO] [stderr]    |
[INFO] [stderr] 67 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_client2.rs:71:12
[INFO] [stderr]    |
[INFO] [stderr] 71 |         Ok(Async::NotReady)
[INFO] [stderr]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stderr]   --> src/ping_client2.rs:74:12
[INFO] [stderr]    |
[INFO] [stderr] 74 |     tokio::run(task);
[INFO] [stderr]    |            ^^^ not found in `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0603]: struct `CommonTransport` is private
[INFO] [stderr]   --> src/ping_client2.rs:24:29
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`
[INFO] [stderr]   --> src/ping_client2.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr] 8  |     NetworkBehaviour, Transport,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stderr]    |                   ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpListener`
[INFO] [stderr]  --> src/ping_listen.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use tokio::net::TcpListener;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `TcpListener` in `net`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `tokio::net::TcpStream`
[INFO] [stderr]  --> src/ping_listen.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use tokio::net::TcpStream;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^ no `TcpStream` in `net`
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Future`, `Stream`
[INFO] [stderr]  --> src/ping_listen.rs:7:15
[INFO] [stderr]   |
[INFO] [stderr] 7 | use futures::{Future, Stream};
[INFO] [stderr]   |               ^^^^^^  ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `OutboundUpgrade`
[INFO] [stderr]  --> src/ping_listen.rs:8:45
[INFO] [stderr]   |
[INFO] [stderr] 8 | use libp2p::core::upgrade::{InboundUpgrade, OutboundUpgrade};
[INFO] [stderr]   |                                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1
[INFO] [stderr]   --> src/ping_listen.rs:22:20
[INFO] [stderr]    |
[INFO] [stderr] 22 |             Ping::<()>::default().upgrade_inbound(c.unwrap(), b"/ipfs/ping/1.0.0")
[INFO] [stderr]    |                    ^^ unexpected type argument
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio`
[INFO] [stderr]   --> src/ping_listen3.rs:23:28
[INFO] [stderr]    |
[INFO] [stderr] 23 |     let local_key = secio::SecioKeyPair::ed25519_generated().unwrap();
[INFO] [stderr]    |                            ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope
[INFO] [stderr]   --> src/chat.rs:76:10
[INFO] [stderr]    |
[INFO] [stderr] 76 |         .with_upgrade(secio::SecioConfig::new(local_key))
[INFO] [stderr]    |          ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stderr]   --> src/ping_listen3.rs:41:39
[INFO] [stderr]    |
[INFO] [stderr] 41 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stderr]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied
[INFO] [stderr]   --> src/chat.rs:80:13
[INFO] [stderr]    |
[INFO] [stderr] 80 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stderr]   --> src/ping_listen3.rs:43:64
[INFO] [stderr]    |
[INFO] [stderr] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope
[INFO] [stderr]   --> src/ping_client3.rs:27:10
[INFO] [stderr]    |
[INFO] [stderr] 27 |         .with_upgrade(secio::SecioConfig::new(local_key))
[INFO] [stderr]    |          ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen3.rs:69:17
[INFO] [stderr]    |
[INFO] [stderr] 69 |                 Async::Ready(Some(x)) => {
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen3.rs:72:17
[INFO] [stderr]    |
[INFO] [stderr] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen3.rs:72:38
[INFO] [stderr]    |
[INFO] [stderr] 72 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied
[INFO] [stderr]   --> src/ping_client3.rs:34:13
[INFO] [stderr]    |
[INFO] [stderr] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen3.rs:76:12
[INFO] [stderr]    |
[INFO] [stderr] 76 |         Ok(Async::NotReady)
[INFO] [stderr]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stderr]   --> src/ping_listen3.rs:65:12
[INFO] [stderr]    |
[INFO] [stderr] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |            ^^^ not found in `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0603]: struct `CommonTransport` is private
[INFO] [stderr]   --> src/ping_listen3.rs:28:29
[INFO] [stderr]    |
[INFO] [stderr] 28 |     let transport = libp2p::CommonTransport::new()
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope
[INFO] [stderr]   --> src/chat.rs:80:58
[INFO] [stderr]    |
[INFO] [stderr] 80 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |                                                          ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: the method `map_err` exists but the following trait bounds were not satisfied:
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]    = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]    |
[INFO] [stderr] 57 | use crate::libp2p::futures::Future;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`, `mplex`, `yamux`
[INFO] [stderr]   --> src/ping_listen3.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr] 8  |     NetworkBehaviour, Transport,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 11 |     mplex,
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr] 12 |     yamux,
[INFO] [stderr]    |     ^^^^^
[INFO] [stderr] 13 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stderr]    |                   ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` in the current scope
[INFO] [stderr]   --> src/ping_client3.rs:34:53
[INFO] [stderr]    |
[INFO] [stderr] 34 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stderr]    |                                                     ^^^^^^^ method not found in `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: the method `map_err` exists but the following trait bounds were not satisfied:
[INFO] [stderr]            `&libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `&libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]            `&mut libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `&mut libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]            `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]    = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]    |
[INFO] [stderr] 6  | use crate::libp2p::futures::Future;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope
[INFO] [stderr]   --> src/ping_client2.rs:25:10
[INFO] [stderr]    |
[INFO] [stderr] 25 |         .with_upgrade(secio::SecioConfig::new(local_key))
[INFO] [stderr]    |          ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport`
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied
[INFO] [stderr]   --> src/ping_client2.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied
[INFO] [stderr]   --> src/ping_client3.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 3 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0107, E0432.
[INFO] [stderr] For more information about an error, try `rustc --explain E0107`.
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied
[INFO] [stderr]    --> src/chat.rs:112:9
[INFO] [stderr]     |
[INFO] [stderr] 112 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stderr]    --> src/chat.rs:138:16
[INFO] [stderr]     |
[INFO] [stderr] 138 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stderr]     |                |
[INFO] [stderr]     |                expected closure that takes 1 argument
[INFO] [stderr]     |
[INFO] [stderr] help: consider changing the closure to take and ignore the expected argument
[INFO] [stderr]     |
[INFO] [stderr] 138 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stderr]     |                                              ^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope
[INFO] [stderr]   --> src/ping_client2.rs:29:58
[INFO] [stderr]    |
[INFO] [stderr] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |                                                          ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: the method `map_err` exists but the following trait bounds were not satisfied:
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]    = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]    |
[INFO] [stderr] 6  | use crate::libp2p::futures::Future;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied
[INFO] [stderr]   --> src/ping_client2.rs:36:9
[INFO] [stderr]    |
[INFO] [stderr] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::tokio_codec::FramedRead<tokio_stdin_stdout::ThreadedStdin, libp2p::tokio_codec::LinesCodec>` in the current scope
[INFO] [stderr]    --> src/chat.rs:140:32
[INFO] [stderr]     |
[INFO] [stderr] 140 |             match framed_stdin.poll().expect("Error while polling stdin") {
[INFO] [stderr]     |                                ^^^^ method not found in `libp2p::tokio_codec::FramedRead<tokio_stdin_stdout::ThreadedStdin, libp2p::tokio_codec::LinesCodec>`
[INFO] [stderr]     |
[INFO] [stderr]     = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]     |
[INFO] [stderr] 57  | use crate::libp2p::futures::Stream;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0609]: no field `floodsub` on type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>`
[INFO] [stderr]    --> src/chat.rs:141:51
[INFO] [stderr]     |
[INFO] [stderr] 141 |                 Async::Ready(Some(line)) => swarm.floodsub.publish(&floodsub_topic, line.as_bytes()),
[INFO] [stderr]     |                                                   ^^^^^^^^ unknown field
[INFO] [stderr] 
[INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stderr]   --> src/ping_client3.rs:66:16
[INFO] [stderr]    |
[INFO] [stderr] 66 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stderr]    |                |
[INFO] [stderr]    |                expected closure that takes 1 argument
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the closure to take and ignore the expected argument
[INFO] [stderr]    |
[INFO] [stderr] 66 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stderr]    |                                              ^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope
[INFO] [stderr]   --> src/ping_client3.rs:68:25
[INFO] [stderr]    |
[INFO] [stderr] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stderr]    |                         ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: swarm is a function, perhaps you wish to call it
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `futures::prelude`
[INFO] [stderr]  --> src/ping_client3.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use futures::prelude::*;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Transport`
[INFO] [stderr]  --> src/ping_client3.rs:8:23
[INFO] [stderr]   |
[INFO] [stderr] 8 |     NetworkBehaviour, Transport,
[INFO] [stderr]   |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 15 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603.
[INFO] [stderr] For more information about an error, try `rustc --explain E0061`.
[INFO] [stderr] warning: unused import: `futures::prelude`
[INFO] [stderr]   --> src/chat.rs:57:5
[INFO] [stderr]    |
[INFO] [stderr] 57 | use futures::prelude::*;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Transport`
[INFO] [stderr]   --> src/chat.rs:59:23
[INFO] [stderr]    |
[INFO] [stderr] 59 |     NetworkBehaviour, Transport,
[INFO] [stderr]    |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 19 previous errors
[INFO] [stderr] 
[INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stderr]   --> src/ping_client2.rs:61:16
[INFO] [stderr]    |
[INFO] [stderr] 61 |     let task = futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stderr]    |                |
[INFO] [stderr]    |                expected closure that takes 1 argument
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the closure to take and ignore the expected argument
[INFO] [stderr]    |
[INFO] [stderr] 61 |     let task = futures::future::poll_fn(move |_| {
[INFO] [stderr]    |                                              ^^^
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603, E0609.
[INFO] [stderr] For more information about an error, try `rustc --explain E0061`.
[INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope
[INFO] [stderr]   --> src/ping_client2.rs:63:25
[INFO] [stderr]    |
[INFO] [stderr] 63 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stderr]    |                         ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: swarm is a function, perhaps you wish to call it
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `futures::prelude`
[INFO] [stderr]  --> src/ping_client2.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use futures::prelude::*;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Transport`
[INFO] [stderr]  --> src/ping_client2.rs:8:23
[INFO] [stderr]   |
[INFO] [stderr] 8 |     NetworkBehaviour, Transport,
[INFO] [stderr]   |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 15 previous errors
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `SecioKeyPair` in `secio`
[INFO] [stderr]   --> src/ping_listen2.rs:19:28
[INFO] [stderr]    |
[INFO] [stderr] 19 |     let local_key = secio::SecioKeyPair::ed25519_generated().unwrap();
[INFO] [stderr]    |                            ^^^^^^^^^^^^ could not find `SecioKeyPair` in `secio`
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603.
[INFO] [stderr] For more information about an error, try `rustc --explain E0061`.
[INFO] [stderr] error[E0433]: failed to resolve: could not find `PingListen` in `ping`
[INFO] [stderr]   --> src/ping_listen2.rs:34:39
[INFO] [stderr]    |
[INFO] [stderr] 34 |         let behaviour = libp2p::ping::PingListen::new();
[INFO] [stderr]    |                                       ^^^^^^^^^^ could not find `PingListen` in `ping`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not find `topology` in `core`
[INFO] [stderr]   --> src/ping_listen2.rs:36:64
[INFO] [stderr]    |
[INFO] [stderr] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |                                                                ^^^^^^^^ could not find `topology` in `core`
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope
[INFO] [stderr]   --> src/ping_listen3.rs:29:10
[INFO] [stderr]    |
[INFO] [stderr] 29 |         .with_upgrade(secio::SecioConfig::new(local_key))
[INFO] [stderr]    |          ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport`
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen2.rs:62:17
[INFO] [stderr]    |
[INFO] [stderr] 62 |                 Async::Ready(Some(x)) => {
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen2.rs:65:17
[INFO] [stderr]    |
[INFO] [stderr] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                 ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen2.rs:65:38
[INFO] [stderr]    |
[INFO] [stderr] 65 |                 Async::Ready(None) | Async::NotReady => break,
[INFO] [stderr]    |                                      ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Async`
[INFO] [stderr]   --> src/ping_listen2.rs:69:12
[INFO] [stderr]    |
[INFO] [stderr] 69 |         Ok(Async::NotReady)
[INFO] [stderr]    |            ^^^^^ use of undeclared type or module `Async`
[INFO] [stderr] 
[INFO] [stderr] error[E0425]: cannot find function `run` in crate `tokio`
[INFO] [stderr]   --> src/ping_listen2.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |            ^^^ not found in `tokio`
[INFO] [stderr] 
[INFO] [stderr] error[E0603]: struct `CommonTransport` is private
[INFO] [stderr]   --> src/ping_listen2.rs:24:29
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let transport = libp2p::CommonTransport::new()
[INFO] [stderr]    |                             ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `FramedRead`, `LinesCodec`, `NetworkBehaviour`
[INFO] [stderr]   --> src/ping_listen2.rs:8:5
[INFO] [stderr]    |
[INFO] [stderr] 8  |     NetworkBehaviour, Transport,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 12 |     tokio_codec::{FramedRead, LinesCodec}
[INFO] [stderr]    |                   ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 4 parameters but 3 parameters were supplied
[INFO] [stderr]   --> src/ping_listen3.rs:36:13
[INFO] [stderr]    |
[INFO] [stderr] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>` in the current scope
[INFO] [stderr]   --> src/ping_listen3.rs:36:53
[INFO] [stderr]    |
[INFO] [stderr] 36 |             upgrade::apply(out.stream, upgrade, cp).map_err(|e| e.into_io_error())
[INFO] [stderr]    |                                                     ^^^^^^^ method not found in `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: the method `map_err` exists but the following trait bounds were not satisfied:
[INFO] [stderr]            `&libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `&libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]            `&mut libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `&mut libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]            `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryFutureExt`
[INFO] [stderr]            `libp2p::futures::future::Either<libp2p::libp2p_core::upgrade::InboundUpgradeApply<_, _>, libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>> : futures::TryStreamExt`
[INFO] [stderr]    = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]    |
[INFO] [stderr] 6  | use crate::libp2p::futures::Future;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied
[INFO] [stderr]   --> src/ping_listen3.rs:43:9
[INFO] [stderr]    |
[INFO] [stderr] 43 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `with_upgrade` found for type `libp2p::CommonTransport` in the current scope
[INFO] [stderr]   --> src/ping_listen2.rs:25:10
[INFO] [stderr]    |
[INFO] [stderr] 25 |         .with_upgrade(secio::SecioConfig::new(local_key))
[INFO] [stderr]    |          ^^^^^^^^^^^^ method not found in `libp2p::CommonTransport`
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied
[INFO] [stderr]   --> src/ping_listen2.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `map_err` found for type `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>` in the current scope
[INFO] [stderr]   --> src/ping_listen2.rs:29:58
[INFO] [stderr]    |
[INFO] [stderr] 29 |             upgrade::apply_outbound(out.stream, upgrade).map_err(|e| e.into_io_error())
[INFO] [stderr]    |                                                          ^^^^^^^ method not found in `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: the method `map_err` exists but the following trait bounds were not satisfied:
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `&mut libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryFutureExt`
[INFO] [stderr]            `libp2p::libp2p_core::upgrade::OutboundUpgradeApply<_, _> : futures::TryStreamExt`
[INFO] [stderr]    = help: items from traits can only be used if the trait is in scope
[INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stderr]    |
[INFO] [stderr] 6  | use crate::libp2p::futures::Future;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] error[E0061]: this function takes 3 parameters but 4 parameters were supplied
[INFO] [stderr]   --> src/ping_listen2.rs:36:9
[INFO] [stderr]    |
[INFO] [stderr] 36 |         libp2p::Swarm::new(transport, behaviour, libp2p::core::topology::MemoryTopology::empty(), local_pub_key)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters
[INFO] [stderr] 
[INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stderr]   --> src/ping_listen3.rs:65:16
[INFO] [stderr]    |
[INFO] [stderr] 65 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stderr]    |                |
[INFO] [stderr]    |                expected closure that takes 1 argument
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the closure to take and ignore the expected argument
[INFO] [stderr]    |
[INFO] [stderr] 65 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stderr]    |                                              ^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope
[INFO] [stderr]   --> src/ping_listen3.rs:68:25
[INFO] [stderr]    |
[INFO] [stderr] 68 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stderr]    |                         ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: swarm is a function, perhaps you wish to call it
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `futures::prelude`
[INFO] [stderr]  --> src/ping_listen3.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use futures::prelude::*;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Transport`
[INFO] [stderr]  --> src/ping_listen3.rs:8:23
[INFO] [stderr]   |
[INFO] [stderr] 8 |     NetworkBehaviour, Transport,
[INFO] [stderr]   |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 15 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603.
[INFO] [stderr] For more information about an error, try `rustc --explain E0061`.
[INFO] [stderr] error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments
[INFO] [stderr]   --> src/ping_listen2.rs:58:16
[INFO] [stderr]    |
[INFO] [stderr] 58 |     tokio::run(futures::future::poll_fn(move || -> Result<_, ()> {
[INFO] [stderr]    |                ^^^^^^^^^^^^^^^^^^^^^^^^ ------------------------ takes 0 arguments
[INFO] [stderr]    |                |
[INFO] [stderr]    |                expected closure that takes 1 argument
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the closure to take and ignore the expected argument
[INFO] [stderr]    |
[INFO] [stderr] 58 |     tokio::run(futures::future::poll_fn(move |_| {
[INFO] [stderr]    |                                              ^^^
[INFO] [stderr] 
[INFO] [stderr] error[E0599]: no method named `poll` found for type `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>` in the current scope
[INFO] [stderr]   --> src/ping_listen2.rs:61:25
[INFO] [stderr]    |
[INFO] [stderr] 61 |             match swarm.poll().expect("Error while polling swarm") {
[INFO] [stderr]    |                         ^^^^ method not found in `libp2p::libp2p_swarm::ExpandedSwarm<_, _, _, _, _, _, _>`
[INFO] [stderr]    |
[INFO] [stderr]    = note: swarm is a function, perhaps you wish to call it
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `futures::prelude`
[INFO] [stderr]  --> src/ping_listen2.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use futures::prelude::*;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Transport`
[INFO] [stderr]  --> src/ping_listen2.rs:8:23
[INFO] [stderr]   |
[INFO] [stderr] 8 |     NetworkBehaviour, Transport,
[INFO] [stderr]   |                       ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 15 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0061, E0425, E0433, E0593, E0599, E0603.
[INFO] [stderr] For more information about an error, try `rustc --explain E0061`.
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `learn-libp2p`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "cbcc2b5fee9108aef2db54d6592441b043ad263d69dfb6decf640047ee649eb9"`
[INFO] running `"docker" "rm" "-f" "cbcc2b5fee9108aef2db54d6592441b043ad263d69dfb6decf640047ee649eb9"`
[INFO] [stdout] cbcc2b5fee9108aef2db54d6592441b043ad263d69dfb6decf640047ee649eb9
