[INFO] cloning repository https://github.com/niooii/discord-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/niooii/discord-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniooii%2Fdiscord-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniooii%2Fdiscord-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b63a100cb46c556f76738709d49cf356928fa36f [INFO] testing niooii/discord-rs against try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fniooii%2Fdiscord-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/niooii/discord-rs on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/niooii/discord-rs [INFO] finished tweaking git repo https://github.com/niooii/discord-rs [INFO] tweaked toml for git repo https://github.com/niooii/discord-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/niooii/discord-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding async-stream v0.3.6 [INFO] [stderr] Adding async-stream-impl v0.3.6 [INFO] [stderr] Updating pin-project-lite v0.2.14 -> v0.2.15 [INFO] [stderr] Adding tokio-stream v0.1.17 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 307c4de0479443b6203c1a2602d67d3f8ebacc459fc8dd121be57bc9f1cdf09a [INFO] running `Command { std: "docker" "start" "-a" "307c4de0479443b6203c1a2602d67d3f8ebacc459fc8dd121be57bc9f1cdf09a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "307c4de0479443b6203c1a2602d67d3f8ebacc459fc8dd121be57bc9f1cdf09a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "307c4de0479443b6203c1a2602d67d3f8ebacc459fc8dd121be57bc9f1cdf09a", kill_on_drop: false }` [INFO] [stdout] 307c4de0479443b6203c1a2602d67d3f8ebacc459fc8dd121be57bc9f1cdf09a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 587696cc301e8f269b5dcbe048b94d4f6b2007c659f3789a76fd49907a7869b7 [INFO] running `Command { std: "docker" "start" "-a" "587696cc301e8f269b5dcbe048b94d4f6b2007c659f3789a76fd49907a7869b7", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.156 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling value-bag v1.9.0 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling serde v1.0.208 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling rle-decode-fast v1.0.3 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling cc v1.1.13 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.125 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling flate2 v1.0.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling publicsuffix v2.2.3 [INFO] [stderr] Compiling err-derive v0.3.1 [INFO] [stderr] Compiling libflate v0.1.27 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling async-executor v1.13.0 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling bytemuck v1.17.0 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling x11rb-protocol v0.13.1 [INFO] [stderr] Compiling dary_heap v0.3.6 [INFO] [stderr] Compiling rustls-pki-types v1.8.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling eetf v0.4.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.208 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling polling v3.7.3 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling async-io v2.3.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling serde_repr v0.1.19 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling arboard v3.4.0 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling libflate_lz77 v2.1.0 [INFO] [stderr] Compiling libflate v2.1.0 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tungstenite v0.23.0 [INFO] [stderr] Compiling eetf v0.9.0 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_eetf v0.2.0 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-tungstenite v0.23.1 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling serde-aux v4.5.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling cookie_store v0.21.0 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.5 [INFO] [stderr] Compiling discord v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/http.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::http::response` [INFO] [stdout] --> src/http.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio_tungstenite::tungstenite::http::response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/api.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `pin_mut` [INFO] [stdout] --> src/gateway/connection.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use futures_util::{future, pin_mut, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/gateway/connection.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/connection.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GeneralMessageData`, `MainUserData`, `RelationshipAddType`, `RelationshipRemoveType`, and `activity::*` [INFO] [stdout] --> src/gateway/dispatched_event.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{GeneralMessageData, Message, MessageComponent, MessageEmbed}, voice::UserVoiceState, channel::Channel, user::{activity::*, GatewayUserData, MainUserData, RelationshipAddEvent, RelationshipAddType, RelationshipRemoveEvent, RelationshipRemoveType... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::GatewayError` and `events::GatewayReceiveEventRaw` [INFO] [stdout] --> src/gateway/dispatched_event.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use super::{error::GatewayError, events::GatewayReceiveEventRaw}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/gateway/events.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::BufWriter` [INFO] [stdout] --> src/gateway/events.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::BufWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/events.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/gateway/events.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::channel` [INFO] [stdout] --> src/model/channel.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::http::QueryError` [INFO] [stdout] --> src/model/channel.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::http::QueryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::guild` [INFO] [stdout] --> src/model/channel.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::guild; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/model/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/model/message.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use time::{Duration, OffsetDateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sub` [INFO] [stdout] --> src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{ops::{Sub, SubAssign}, pin::Pin, task::{Context, Poll}}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GeneralMessageData` [INFO] [stdout] --> src/lib.rs:14:98 [INFO] [stdout] | [INFO] [stdout] 14 | use model::{channel::{Channel, DmData, GroupDmData}, guild::Guild, message::{DefaultMessageData, GeneralMessageData, Message}, user::{Mai... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DiscordError` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use api::{DiscordError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use async_stream::{stream, try_stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poison` [INFO] [stdout] --> src/gateway/connection.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(poison) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_poison` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Properties` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Properties` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct Properties { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Presence` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Presence` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct Presence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ClientState` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ClientState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | struct ClientState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/gateway/connection.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | ... event_sender.send(dispatched_event).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = event_sender.send(dispatched_event).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.92s [INFO] running `Command { std: "docker" "inspect" "587696cc301e8f269b5dcbe048b94d4f6b2007c659f3789a76fd49907a7869b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "587696cc301e8f269b5dcbe048b94d4f6b2007c659f3789a76fd49907a7869b7", kill_on_drop: false }` [INFO] [stdout] 587696cc301e8f269b5dcbe048b94d4f6b2007c659f3789a76fd49907a7869b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1fc720b007e10f92b2e4387a404e2d4b9d3b06db40b242c145333e1f111a40e [INFO] running `Command { std: "docker" "start" "-a" "c1fc720b007e10f92b2e4387a404e2d4b9d3b06db40b242c145333e1f111a40e", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/http.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::http::response` [INFO] [stdout] --> src/http.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio_tungstenite::tungstenite::http::response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/api.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `pin_mut` [INFO] [stdout] --> src/gateway/connection.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use futures_util::{future, pin_mut, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/gateway/connection.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/connection.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling discord v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `GeneralMessageData`, `MainUserData`, `RelationshipAddType`, `RelationshipRemoveType`, and `activity::*` [INFO] [stdout] --> src/gateway/dispatched_event.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{GeneralMessageData, Message, MessageComponent, MessageEmbed}, voice::UserVoiceState, channel::Channel, user::{activity::*, GatewayUserData, MainUserData, RelationshipAddEvent, RelationshipAddType, RelationshipRemoveEvent, RelationshipRemoveType... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::GatewayError` and `events::GatewayReceiveEventRaw` [INFO] [stdout] --> src/gateway/dispatched_event.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use super::{error::GatewayError, events::GatewayReceiveEventRaw}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/gateway/events.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::BufWriter` [INFO] [stdout] --> src/gateway/events.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::BufWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/events.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/gateway/events.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::channel` [INFO] [stdout] --> src/model/channel.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::http::QueryError` [INFO] [stdout] --> src/model/channel.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::http::QueryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::guild` [INFO] [stdout] --> src/model/channel.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::guild; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/model/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/model/message.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use time::{Duration, OffsetDateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sub` [INFO] [stdout] --> src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{ops::{Sub, SubAssign}, pin::Pin, task::{Context, Poll}}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GeneralMessageData` [INFO] [stdout] --> src/lib.rs:14:98 [INFO] [stdout] | [INFO] [stdout] 14 | use model::{channel::{Channel, DmData, GroupDmData}, guild::Guild, message::{DefaultMessageData, GeneralMessageData, Message}, user::{Mai... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DiscordError` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use api::{DiscordError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use async_stream::{stream, try_stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poison` [INFO] [stdout] --> src/gateway/connection.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(poison) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_poison` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Properties` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Properties` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct Properties { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Presence` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Presence` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct Presence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ClientState` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ClientState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | struct ClientState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/gateway/connection.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | ... event_sender.send(dispatched_event).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = event_sender.send(dispatched_event).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/http.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_tungstenite::tungstenite::http::response` [INFO] [stdout] --> src/http.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tokio_tungstenite::tungstenite::http::response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Deserialize` [INFO] [stdout] --> src/api.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::Deserialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `future` and `pin_mut` [INFO] [stdout] --> src/gateway/connection.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use futures_util::{future, pin_mut, SinkExt, StreamExt}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/gateway/connection.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/connection.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GeneralMessageData`, `MainUserData`, `RelationshipAddType`, `RelationshipRemoveType`, and `activity::*` [INFO] [stdout] --> src/gateway/dispatched_event.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{GeneralMessageData, Message, MessageComponent, MessageEmbed}, voice::UserVoiceState, channel::Channel, user::{activity::*, GatewayUserData, MainUserData, RelationshipAddEvent, RelationshipAddType, RelationshipRemoveEvent, RelationshipRemoveType... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::GatewayError` and `events::GatewayReceiveEventRaw` [INFO] [stdout] --> src/gateway/dispatched_event.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use super::{error::GatewayError, events::GatewayReceiveEventRaw}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/gateway/events.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::BufWriter` [INFO] [stdout] --> src/gateway/events.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::BufWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::error::GatewayError` [INFO] [stdout] --> src/gateway/events.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::error::GatewayError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::Error` [INFO] [stdout] --> src/gateway/events.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::de::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_std::channel` [INFO] [stdout] --> src/model/channel.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::http::QueryError` [INFO] [stdout] --> src/model/channel.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::http::QueryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::guild` [INFO] [stdout] --> src/model/channel.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::guild; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arboard::Clipboard` [INFO] [stdout] --> src/model/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use arboard::Clipboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/model/message.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | use time::{Duration, OffsetDateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sub` [INFO] [stdout] --> src/lib.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{ops::{Sub, SubAssign}, pin::Pin, task::{Context, Poll}}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GeneralMessageData` [INFO] [stdout] --> src/lib.rs:14:98 [INFO] [stdout] | [INFO] [stdout] 14 | use model::{channel::{Channel, DmData, GroupDmData}, guild::Guild, message::{DefaultMessageData, GeneralMessageData, Message}, user::{Mai... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DiscordError` [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use api::{DiscordError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/lib.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | use async_stream::{stream, try_stream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `poison` [INFO] [stdout] --> src/gateway/connection.rs:192:33 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(poison) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_poison` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Properties` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Properties` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | struct Properties { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Presence` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Presence` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct Presence { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ClientState` is more private than the item `connection::::login` [INFO] [stdout] --> src/gateway/connection.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ClientState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/gateway/connection.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | struct ClientState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/gateway/connection.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | ... event_sender.send(dispatched_event).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 160 | let _ = event_sender.send(dispatched_event).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.05s [INFO] running `Command { std: "docker" "inspect" "c1fc720b007e10f92b2e4387a404e2d4b9d3b06db40b242c145333e1f111a40e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1fc720b007e10f92b2e4387a404e2d4b9d3b06db40b242c145333e1f111a40e", kill_on_drop: false }` [INFO] [stdout] c1fc720b007e10f92b2e4387a404e2d4b9d3b06db40b242c145333e1f111a40e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bf986508cd567a431270380da75b9f905cb08ce1ba45cd890c7806b58b475c48 [INFO] running `Command { std: "docker" "start" "-a" "bf986508cd567a431270380da75b9f905cb08ce1ba45cd890c7806b58b475c48", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `arboard::Clipboard` [INFO] [stderr] --> src/http.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use arboard::Clipboard; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio_tungstenite::tungstenite::http::response` [INFO] [stderr] --> src/http.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use tokio_tungstenite::tungstenite::http::response; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde::Deserialize` [INFO] [stderr] --> src/api.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::Deserialize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `future` and `pin_mut` [INFO] [stderr] --> src/gateway/connection.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | use futures_util::{future, pin_mut, SinkExt, StreamExt}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::VecDeque` [INFO] [stderr] --> src/gateway/connection.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use std::collections::VecDeque; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::error::GatewayError` [INFO] [stderr] --> src/gateway/connection.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use super::error::GatewayError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GeneralMessageData`, `MainUserData`, `RelationshipAddType`, `RelationshipRemoveType`, and `activity::*` [INFO] [stderr] --> src/gateway/dispatched_event.rs:7:47 [INFO] [stderr] | [INFO] [stderr] 7 | ...::{GeneralMessageData, Message, MessageComponent, MessageEmbed}, voice::UserVoiceState, channel::Channel, user::{activity::*, GatewayUserData, MainUserData, RelationshipAddEvent, RelationshipAddType, RelationshipRemoveEvent, RelationshipRemoveType... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `error::GatewayError` and `events::GatewayReceiveEventRaw` [INFO] [stderr] --> src/gateway/dispatched_event.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 9 | use super::{error::GatewayError, events::GatewayReceiveEventRaw}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `arboard::Clipboard` [INFO] [stderr] --> src/gateway/events.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use arboard::Clipboard; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::io::BufWriter` [INFO] [stderr] --> src/gateway/events.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio::io::BufWriter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::error::GatewayError` [INFO] [stderr] --> src/gateway/events.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use super::error::GatewayError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde::de::Error` [INFO] [stderr] --> src/gateway/events.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use serde::de::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `async_std::channel` [INFO] [stderr] --> src/model/channel.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use async_std::channel; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::http::QueryError` [INFO] [stderr] --> src/model/channel.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::http::QueryError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::guild` [INFO] [stderr] --> src/model/channel.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use super::guild; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `arboard::Clipboard` [INFO] [stderr] --> src/model/message.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use arboard::Clipboard; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Duration` [INFO] [stderr] --> src/model/message.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | use time::{Duration, OffsetDateTime}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Sub` [INFO] [stderr] --> src/lib.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | use std::{ops::{Sub, SubAssign}, pin::Pin, task::{Context, Poll}}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GeneralMessageData` [INFO] [stderr] --> src/lib.rs:14:98 [INFO] [stderr] | [INFO] [stderr] 14 | use model::{channel::{Channel, DmData, GroupDmData}, guild::Guild, message::{DefaultMessageData, GeneralMessageData, Message}, user::{Mai... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `DiscordError` [INFO] [stderr] --> src/lib.rs:18:11 [INFO] [stderr] | [INFO] [stderr] 18 | use api::{DiscordError, Result}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `stream` [INFO] [stderr] --> src/lib.rs:19:20 [INFO] [stderr] | [INFO] [stderr] 19 | use async_stream::{stream, try_stream}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `poison` [INFO] [stderr] --> src/gateway/connection.rs:192:33 [INFO] [stderr] | [INFO] [stderr] 192 | ... Err(poison) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_poison` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Properties` is more private than the item `connection::::login` [INFO] [stderr] --> src/gateway/connection.rs:244:5 [INFO] [stderr] | [INFO] [stderr] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Properties` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/gateway/connection.rs:26:1 [INFO] [stderr] | [INFO] [stderr] 26 | struct Properties { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `Presence` is more private than the item `connection::::login` [INFO] [stderr] --> src/gateway/connection.rs:244:5 [INFO] [stderr] | [INFO] [stderr] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `Presence` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/gateway/connection.rs:42:1 [INFO] [stderr] | [INFO] [stderr] 42 | struct Presence { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `ClientState` is more private than the item `connection::::login` [INFO] [stderr] --> src/gateway/connection.rs:244:5 [INFO] [stderr] | [INFO] [stderr] 244 | pub fn login(token: String, capabilities: u32, properties: Properties, presence: Presence, compress: bool, client_state: ClientState) -> Result::login` is reachable at visibility `pub` [INFO] [stderr] | [INFO] [stderr] note: but type `ClientState` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/gateway/connection.rs:51:1 [INFO] [stderr] | [INFO] [stderr] 51 | struct ClientState { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/gateway/connection.rs:160:41 [INFO] [stderr] | [INFO] [stderr] 160 | ... event_sender.send(dispatched_event).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 160 | let _ = event_sender.send(dispatched_event).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `discord` (lib) generated 26 warnings (run `cargo fix --lib -p discord` to apply 21 suggestions) [INFO] [stderr] warning: `discord` (lib test) generated 26 warnings (26 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/discord-5877dfecdaf3d06c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Doc-tests discord [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bf986508cd567a431270380da75b9f905cb08ce1ba45cd890c7806b58b475c48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf986508cd567a431270380da75b9f905cb08ce1ba45cd890c7806b58b475c48", kill_on_drop: false }` [INFO] [stdout] bf986508cd567a431270380da75b9f905cb08ce1ba45cd890c7806b58b475c48