[INFO] cloning repository https://github.com/artronics/websocket2socketcan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/artronics/websocket2socketcan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartronics%2Fwebsocket2socketcan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartronics%2Fwebsocket2socketcan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 74ed43f7377138600ff7b4665be294198b0a1d30 [INFO] testing artronics/websocket2socketcan against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartronics%2Fwebsocket2socketcan" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/artronics/websocket2socketcan on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/artronics/websocket2socketcan [INFO] finished tweaking git repo https://github.com/artronics/websocket2socketcan [INFO] tweaked toml for git repo https://github.com/artronics/websocket2socketcan written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/artronics/websocket2socketcan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.serde.featuers [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded security-framework v2.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27fbce35b4232a51cbadb165c56042e3f2ed879cc93cbd393f0b9c4b3db5e65f [INFO] running `Command { std: "docker" "start" "-a" "27fbce35b4232a51cbadb165c56042e3f2ed879cc93cbd393f0b9c4b3db5e65f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27fbce35b4232a51cbadb165c56042e3f2ed879cc93cbd393f0b9c4b3db5e65f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27fbce35b4232a51cbadb165c56042e3f2ed879cc93cbd393f0b9c4b3db5e65f", kill_on_drop: false }` [INFO] [stdout] 27fbce35b4232a51cbadb165c56042e3f2ed879cc93cbd393f0b9c4b3db5e65f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2f2864895801401ed0292d2e5c0d4a7d889851b283ad16cde434406654259f0 [INFO] running `Command { std: "docker" "start" "-a" "b2f2864895801401ed0292d2e5c0d4a7d889851b283ad16cde434406654259f0", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.serde.featuers [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.87 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling bitflags v0.4.0 [INFO] [stderr] Compiling itertools v0.4.19 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling hex v0.2.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling try_from v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling mio v0.7.9 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling nix v0.5.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling sha-1 v0.9.4 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling socketcan v1.7.0 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling tungstenite v0.13.0 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling tokio-socketcan v0.3.0 [INFO] [stderr] Compiling tokio-tungstenite v0.14.0 [INFO] [stderr] Compiling websocket2socketcan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ws::handle_connection` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ws::handle_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env`, `io::Error as IoError` [INFO] [stdout] --> src/ws.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | io::Error as IoError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpListener` [INFO] [stdout] --> src/ws.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result as SerdeResult` [INFO] [stdout] --> src/can.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Result as SerdeResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConstructionError` [INFO] [stdout] --> src/can.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use socketcan::{CANFrame, CANSocket, ConstructionError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | fn can_handler(s: &CANSocket, f: CANFrame) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 17 | fn can_handler(s: &CANSocket, f: CANFrame) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let f = CANFrame::new(0x123, &d, false, false).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can` [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let can = &Can::new("can0"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_can` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let state = PeerMap::new(Mutex::new(HashMap::new())); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/main.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | while let Ok((stream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | while let Ok((stream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Tx` [INFO] [stdout] --> src/ws.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | type Tx = UnboundedSender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `PeerMap` [INFO] [stdout] --> src/ws.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub type PeerMap = Arc>>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `CanFrameHandler` [INFO] [stdout] --> src/ws.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | type CanFrameHandler = fn(&Can, CanFrame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `handle_connection` [INFO] [stdout] --> src/ws.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | pub async fn handle_connection(peer_map: PeerMap, raw_stream: TcpStream, addr: SocketAddr, can: &Can) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/can.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(id: u32, data: [u8; 8], data_length: usize, is_remote: bool, is_error: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_linux_frame` [INFO] [stdout] --> src/can.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn from_linux_frame(f: CANFrame) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_linux_frame` [INFO] [stdout] --> src/can.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn to_linux_frame(&self) -> CANFrame { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `socket` [INFO] [stdout] --> src/can.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | socket: CANSocket [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/can.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn write(&self, frame: CanFrame) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `can_handler` [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn can_handler(s: &CANSocket, f: CANFrame) {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `old` [INFO] [stdout] --> src/main.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | async fn old() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/can.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | socket.set_nonblocking(true); [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 `Result` that must be used [INFO] [stdout] --> src/can.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | self.socket.write_frame(&linux_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.95s [INFO] running `Command { std: "docker" "inspect" "b2f2864895801401ed0292d2e5c0d4a7d889851b283ad16cde434406654259f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2f2864895801401ed0292d2e5c0d4a7d889851b283ad16cde434406654259f0", kill_on_drop: false }` [INFO] [stdout] b2f2864895801401ed0292d2e5c0d4a7d889851b283ad16cde434406654259f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 978efe69507bdd010872c920f4db6da44978e23c35af2cdcbc2ac532c71c5c72 [INFO] running `Command { std: "docker" "start" "-a" "978efe69507bdd010872c920f4db6da44978e23c35af2cdcbc2ac532c71c5c72", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: dependencies.serde.featuers [INFO] [stderr] Compiling websocket2socketcan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::ws::accept_connection` [INFO] [stdout] --> src/ws.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | use crate::ws::accept_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `accept_connection` in `ws` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/ws.rs:77:48 [INFO] [stdout] | [INFO] [stdout] 73 | fn it_works() { [INFO] [stdout] | -------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 77 | let listener = TcpListener::bind(&addr).await.expect("Can't listen"); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/ws.rs:80:54 [INFO] [stdout] | [INFO] [stdout] 73 | fn it_works() { [INFO] [stdout] | -------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 80 | while let Ok((stream, _)) = listener.accept().await { [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ws::handle_connection` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ws::handle_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env`, `io::Error as IoError` [INFO] [stdout] --> src/ws.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | env, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | io::Error as IoError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpListener` [INFO] [stdout] --> src/ws.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | use tokio::net::{TcpListener, TcpStream}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Result as SerdeResult` [INFO] [stdout] --> src/can.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json::Result as SerdeResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ConstructionError` [INFO] [stdout] --> src/can.rs:3:38 [INFO] [stdout] | [INFO] [stdout] 3 | use socketcan::{CANFrame, CANSocket, ConstructionError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `websocket2socketcan` due to 4 previous errors; 5 warnings emitted [INFO] [stdout] error: aborting due to 3 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0728. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "978efe69507bdd010872c920f4db6da44978e23c35af2cdcbc2ac532c71c5c72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "978efe69507bdd010872c920f4db6da44978e23c35af2cdcbc2ac532c71c5c72", kill_on_drop: false }` [INFO] [stdout] 978efe69507bdd010872c920f4db6da44978e23c35af2cdcbc2ac532c71c5c72