[INFO] fetching crate allium 0.1.2... [INFO] checking allium-0.1.2 against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] extracting crate allium 0.1.2 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate allium 0.1.2 on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate allium 0.1.2 [INFO] finished tweaking crates.io crate allium 0.1.2 [INFO] tweaked toml for crates.io crate allium 0.1.2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate crates.io crate allium 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust-ini v0.16.0 [INFO] [stderr] Downloaded ordered-multimap v0.3.0 [INFO] running `Command { std: "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" "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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a0d8f3aa6a3e89614971093b0ef4d34cdb428b8a4f92e2b54091f73043cf928 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1a0d8f3aa6a3e89614971093b0ef4d34cdb428b8a4f92e2b54091f73043cf928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a0d8f3aa6a3e89614971093b0ef4d34cdb428b8a4f92e2b54091f73043cf928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a0d8f3aa6a3e89614971093b0ef4d34cdb428b8a4f92e2b54091f73043cf928", kill_on_drop: false }` [INFO] [stdout] 1a0d8f3aa6a3e89614971093b0ef4d34cdb428b8a4f92e2b54091f73043cf928 [INFO] running `Command { std: "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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--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" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b2ff9c6101816acf0429158013d3fed0e04fc3f79b7df6da1fe55841c3ce724 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7b2ff9c6101816acf0429158013d3fed0e04fc3f79b7df6da1fe55841c3ce724", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.44 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking ahash v0.4.6 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking arc-swap v0.4.7 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.33 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.4 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking futures-core v0.3.6 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking instant v0.1.7 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking mio v0.7.7 [INFO] [stderr] Checking signal-hook-registry v1.2.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Checking dlv-list v0.2.2 [INFO] [stderr] Checking ordered-multimap v0.3.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking rust-ini v0.16.0 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking tokio-stream v0.1.3 [INFO] [stderr] Checking toml v0.5.7 [INFO] [stderr] Checking allium v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `trace` [INFO] [stdout] --> src/onion.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `anyhow` in this scope [INFO] [stdout] --> src/onion/tests.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | _ => Err(anyhow!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] anyhow::anyhow [INFO] [stdout] crate::onion::anyhow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `broadcast` [INFO] [stdout] --> src/onion/tests.rs:139:23 [INFO] [stdout] | [INFO] [stdout] 139 | let (evt_tx, _) = broadcast::channel(1); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `broadcast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `broadcast` [INFO] [stdout] --> src/onion/tests.rs:185:23 [INFO] [stdout] | [INFO] [stdout] 185 | let (evt_tx, _) = broadcast::channel(1); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `broadcast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `broadcast` [INFO] [stdout] --> src/onion/tests.rs:224:34 [INFO] [stdout] | [INFO] [stdout] 224 | let (events_tx, events_rx) = broadcast::channel(1); [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `broadcast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `time` [INFO] [stdout] --> src/onion/tests.rs:235:17 [INFO] [stdout] | [INFO] [stdout] 235 | let ready = time::timeout(ERROR_TIMEOUT, ready_rx) [INFO] [stdout] | ^^^^ use of undeclared crate or module `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `time` [INFO] [stdout] --> src/onion/tests.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | let delay = time::sleep(circuit::IDLE_TIMEOUT + ERROR_TIMEOUT); [INFO] [stdout] | ^^^^ use of undeclared crate or module `time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope [INFO] [stdout] --> src/onion/tests.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | const ERROR_TIMEOUT: Duration = Duration::from_secs(4); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/onion/tests.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | const ERROR_TIMEOUT: Duration = Duration::from_secs(4); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope [INFO] [stdout] --> src/onion/tests.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | const ROUND_DURATION: Duration = Duration::from_secs(5); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/onion/tests.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | const ROUND_DURATION: Duration = Duration::from_secs(5); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpListener` in this scope [INFO] [stdout] --> src/onion/tests.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | async fn listen(listener: TcpListener, host_key: &RsaPrivateKey) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OnionSocket` [INFO] [stdout] --> src/onion/tests.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | let socket = OnionSocket::new(stream); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::OnionSocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/onion/tests.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | let host_key = Arc::new(host_key); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Arc; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/onion/tests.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | let listener = TcpListener::bind(&peer_addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OnionListener` [INFO] [stdout] --> src/onion/tests.rs:134:28 [INFO] [stdout] | [INFO] [stdout] 134 | let mut listener = OnionListener::new(host_key, incoming_tx); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::OnionListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/onion/tests.rs:135:28 [INFO] [stdout] | [INFO] [stdout] 135 | let tcp_listener = TcpListener::bind(peer_addr).await?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> src/onion/tests.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | let data = Bytes::from_static(b"test"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use core::str::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> src/onion/tests.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | let data_ping = Bytes::from_static(b"ping"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use core::str::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> src/onion/tests.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | let data_pong = Bytes::from_static(b"pong"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use bytes::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use core::str::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Bytes; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OnionListener` [INFO] [stdout] --> src/onion/tests.rs:166:28 [INFO] [stdout] | [INFO] [stdout] 166 | let mut listener = OnionListener::new(host_key, incoming_tx); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::OnionListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/onion/tests.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | let tcp_listener = TcpListener::bind(peer_addr).await?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TunnelBuilder` [INFO] [stdout] --> src/onion/tests.rs:222:19 [INFO] [stdout] | [INFO] [stdout] 222 | let builder = TunnelBuilder::new(tunnel.id, Target::Peer(peers[1].clone()), 1, peer_provider); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/onion.rs:150:1 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct TunnelWriter { [INFO] [stdout] | ----------------------- similarly named struct `TunnelWriter` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 222 | let builder = TunnelWriter::new(tunnel.id, Target::Peer(peers[1].clone()), 1, peer_provider); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TunnelBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Target` [INFO] [stdout] --> src/onion/tests.rs:222:49 [INFO] [stdout] | [INFO] [stdout] 222 | let builder = TunnelBuilder::new(tunnel.id, Target::Peer(peers[1].clone()), 1, peer_provider); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::Target; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TunnelHandler` [INFO] [stdout] --> src/onion/tests.rs:226:23 [INFO] [stdout] | [INFO] [stdout] 226 | let mut handler = TunnelHandler::new(tunnel, builder, events_rx, ready_tx); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::onion::TunnelHandler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trace` [INFO] [stdout] --> src/onion.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, trace, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SIGNATURE_LEN` [INFO] [stdout] --> src/onion/crypto/crypto_openssl.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const SIGNATURE_LEN: usize = 512; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bytes` [INFO] [stdout] --> src/onion/crypto/crypto_openssl.rs:137:19 [INFO] [stdout] | [INFO] [stdout] 137 | pub(crate) fn from_bytes(bytes: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Destroy` [INFO] [stdout] --> src/onion/tunnel.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Destroy, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/onion/circuit.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | panic!(e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 255 | panic!("{}", e) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 255 | std::panic::panic_any(e) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/onion/circuit.rs:449:24 [INFO] [stdout] | [INFO] [stdout] 449 | panic!(e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 449 | panic!("{}", e) [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 449 | std::panic::panic_any(e) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/onion.rs:283:25 [INFO] [stdout] | [INFO] [stdout] 283 | tunnel.write(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `poll` found for struct `Pin<&mut &mut Pin<&mut _>>` in the current scope [INFO] [stdout] --> src/onion/tests.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | / tokio::select! { [INFO] [stdout] 245 | | _ = handler_task => Ok(()), [INFO] [stdout] 246 | | _ = &mut delay => { [INFO] [stdout] 247 | | panic!("No circuit destroyed the tunnel before timeout") [INFO] [stdout] 248 | | }, [INFO] [stdout] 249 | | } [INFO] [stdout] | |_____^ method not found in `Pin<&mut &mut Pin<&mut _>>` [INFO] [stdout] | [INFO] [stdout] = note: `fut` is a function, perhaps you wish to call it [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `allium` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/daemon/protocol.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn id(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/daemon/protocol.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn id(&self) -> u16 { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/allium_daemon.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | api_handler.handle().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/allium_daemon.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 295 | api_handler.handle().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7b2ff9c6101816acf0429158013d3fed0e04fc3f79b7df6da1fe55841c3ce724", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b2ff9c6101816acf0429158013d3fed0e04fc3f79b7df6da1fe55841c3ce724", kill_on_drop: false }` [INFO] [stdout] 7b2ff9c6101816acf0429158013d3fed0e04fc3f79b7df6da1fe55841c3ce724