[INFO] cloning repository https://github.com/Reflejo/yobot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Reflejo/yobot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReflejo%2Fyobot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReflejo%2Fyobot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b336203281be3c562c27eb7a570ea7c2c3f62579 [INFO] checking Reflejo/yobot against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FReflejo%2Fyobot" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Reflejo/yobot on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Reflejo/yobot [INFO] finished tweaking git repo https://github.com/Reflejo/yobot [INFO] tweaked toml for git repo https://github.com/Reflejo/yobot written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/Reflejo/yobot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-0/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded slack v0.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b225e267d163486baeef9395555f2838d290ad0483f4159b8ab6883da50d2f92 [INFO] running `Command { std: "docker" "start" "-a" "b225e267d163486baeef9395555f2838d290ad0483f4159b8ab6883da50d2f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b225e267d163486baeef9395555f2838d290ad0483f4159b8ab6883da50d2f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b225e267d163486baeef9395555f2838d290ad0483f4159b8ab6883da50d2f92", kill_on_drop: false }` [INFO] [stdout] b225e267d163486baeef9395555f2838d290ad0483f4159b8ab6883da50d2f92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a01c74b796b13ac795c213812f283ee3b18cca02edf1846ff7be0a52aeb0a2d1 [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" "a01c74b796b13ac795c213812f283ee3b18cca02edf1846ff7be0a52aeb0a2d1", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.13 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Compiling slack v0.25.0 [INFO] [stderr] Checking regex-syntax v0.6.23 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling tokio v1.3.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking sha-1 v0.8.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking input_buffer v0.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking http-body v0.4.0 [INFO] [stderr] Checking async-compression v0.3.7 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking regex v1.4.5 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking tungstenite v0.9.2 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Checking pin-project v1.0.5 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking hyper v0.14.4 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking slack_api v0.23.1 [INFO] [stderr] Checking yobot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/meme.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/slackbot.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/profound.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `log::LogMetadata`, `log::LogLevel`, `log::LogRecord` [INFO] [stdout] --> src/logger.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{LogMetadata, LogLevel, LogRecord}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ no `LogRecord` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `LogLevel` in the root [INFO] [stdout] | no `LogMetadata` in the root [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 3 | use log::{Metadata, LogLevel, LogRecord}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 3 | use log::{LogMetadata, LogLevel, Record}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `on_ping` is not a member of trait `slack::EventHandler` [INFO] [stdout] --> src/slackhandler/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | fn on_ping(&mut self, _cli: &mut slack::RtmClient) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `slack::EventHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/listener/profound.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yobot.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | listeners: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn MessageListener` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/meme.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/slackbot.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper::Client` [INFO] [stdout] --> src/listener/profound.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::Client; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Client` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `log::LogMetadata`, `log::LogLevel`, `log::LogRecord` [INFO] [stdout] --> src/logger.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{LogMetadata, LogLevel, LogRecord}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ no `LogRecord` in the root [INFO] [stdout] | | | [INFO] [stdout] | | no `LogLevel` in the root [INFO] [stdout] | no `LogMetadata` in the root [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 3 | use log::{Metadata, LogLevel, LogRecord}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 3 | use log::{LogMetadata, LogLevel, Record}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `on_ping` is not a member of trait `slack::EventHandler` [INFO] [stdout] --> src/slackhandler/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | fn on_ping(&mut self, _cli: &mut slack::RtmClient) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `slack::EventHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::rand::Rng` [INFO] [stdout] --> src/listener/profound.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use self::rand::Rng; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yobot.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | listeners: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn MessageListener` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `on_event` has 4 parameters but the declaration in trait `on_event` has 3 [INFO] [stdout] --> src/slackhandler/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_event(&mut self, cli: &mut slack::RtmClient, [INFO] [stdout] | _________________^ [INFO] [stdout] 88 | | result: Result<&Event, slack::Error>, _: &str) [INFO] [stdout] | |_____________________________________________________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] = note: `on_event` from trait: `fn(&mut Self, &RtmClient, Event)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `on_event` has 4 parameters but the declaration in trait `on_event` has 3 [INFO] [stdout] --> src/slackhandler/mod.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_event(&mut self, cli: &mut slack::RtmClient, [INFO] [stdout] | _________________^ [INFO] [stdout] 88 | | result: Result<&Event, slack::Error>, _: &str) [INFO] [stdout] | |_____________________________________________________________^ expected 3 parameters, found 4 [INFO] [stdout] | [INFO] [stdout] = note: `on_event` from trait: `fn(&mut Self, &RtmClient, Event)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_connect` has an incompatible type for trait [INFO] [stdout] --> src/slackhandler/mod.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_connect(&mut self, _cli: &mut slack::RtmClient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&mut SlackHandler, &RtmClient)` [INFO] [stdout] found fn pointer `fn(&mut SlackHandler, &mut RtmClient)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_connect` has an incompatible type for trait [INFO] [stdout] --> src/slackhandler/mod.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | fn on_connect(&mut self, _cli: &mut slack::RtmClient) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&mut SlackHandler, &RtmClient)` [INFO] [stdout] found fn pointer `fn(&mut SlackHandler, &mut RtmClient)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_close` has an incompatible type for trait [INFO] [stdout] --> src/slackhandler/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | fn on_close(&mut self, _cli: &mut slack::RtmClient) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&mut SlackHandler, &RtmClient)` [INFO] [stdout] found fn pointer `fn(&mut SlackHandler, &mut RtmClient)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `on_close` has an incompatible type for trait [INFO] [stdout] --> src/slackhandler/mod.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | fn on_close(&mut self, _cli: &mut slack::RtmClient) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&mut SlackHandler, &RtmClient)` [INFO] [stdout] found fn pointer `fn(&mut SlackHandler, &mut RtmClient)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `flush` [INFO] [stdout] --> src/logger.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | impl log::Log for SimpleLogger { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `flush` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn flush(&self) { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `flush` [INFO] [stdout] --> src/logger.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | impl log::Log for SimpleLogger { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `flush` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `fn flush(&self) { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/echo.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let _ = cli.send_message(&message.channel, &message.text); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/echo.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | let _ = cli.send_message(&message.channel, &message.text); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/meme.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | let (kind, text) = (String::from(captures.at(1).unwrap()), captures.at(2).unwrap()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/meme.rs:70:71 [INFO] [stdout] | [INFO] [stdout] 70 | let (kind, text) = (String::from(captures.at(1).unwrap()), captures.at(2).unwrap()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/meme.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let _ = cli.send_message(&message.channel, &msg); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/meme.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = cli.send_message(&message.channel, &url); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/meme.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | let (kind, text) = (String::from(captures.at(1).unwrap()), captures.at(2).unwrap()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/slackbot.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | let (message, mut channel) = (captures.at(1).unwrap(), captures.at(2).unwrap().to_string()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/meme.rs:70:71 [INFO] [stdout] | [INFO] [stdout] 70 | let (kind, text) = (String::from(captures.at(1).unwrap()), captures.at(2).unwrap()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/meme.rs:73:22 [INFO] [stdout] | [INFO] [stdout] 73 | let _ = cli.send_message(&message.channel, &msg); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/meme.rs:82:21 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = cli.send_message(&message.channel, &url); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/slackbot.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | let (message, mut channel) = (captures.at(1).unwrap(), captures.at(2).unwrap().to_string()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/slackbot.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | let (message, mut channel) = (captures.at(1).unwrap(), captures.at(2).unwrap().to_string()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next_u32` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/listener/profound.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let index = rng.next_u32() % 116; [INFO] [stdout] | ^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.6.2/src/lib.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn next_u32(&mut self) -> u32; [INFO] [stdout] | -------- the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use listener::profound::rand::RngCore;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/profound.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = cli.send_message(&message.channel, &post.photo_url_1280); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/profound.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let _ = cli.send_message(&message.channel, "Maybe next time"); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/listener/slackbot.rs:42:67 [INFO] [stdout] | [INFO] [stdout] 42 | let (message, mut channel) = (captures.at(1).unwrap(), captures.at(2).unwrap().to_string()); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `RtmClient` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | let mut cli = slack::RtmClient::new(&token); [INFO] [stdout] | ^^^ function or associated item not found in `RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | let prefix_len = captures.at(0).unwrap().len(); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/slackhandler/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | message = message.slice_unchecked(prefix_len, message_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next_u32` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/listener/profound.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let index = rng.next_u32() % 116; [INFO] [stdout] | ^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand_core-0.6.2/src/lib.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn next_u32(&mut self) -> u32; [INFO] [stdout] | -------- the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use listener::profound::rand::RngCore;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/profound.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = cli.send_message(&message.channel, &post.photo_url_1280); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/listener/profound.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let _ = cli.send_message(&message.channel, "Maybe next time"); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `RtmClient` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | let mut cli = slack::RtmClient::new(&token); [INFO] [stdout] | ^^^ function or associated item not found in `RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/slackhandler/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | if let slack::Message::Standard {user: Some(ref user_id), [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | text: Some(ref text), [INFO] [stdout] 94 | | channel: Some(ref channel), [INFO] [stdout] 95 | | ..} = *message [INFO] [stdout] | | ^ -------- [INFO] [stdout] | | | | [INFO] [stdout] | | | this expression has type `Box` [INFO] [stdout] | |________________________________________________| help: consider dereferencing the boxed value: `**message` [INFO] [stdout] | expected struct `Box`, found enum `slack::Message` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found enum `slack::Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `slack::Message::Standard` does not have fields named `user`, `text`, `channel` [INFO] [stdout] --> src/slackhandler/mod.rs:92:46 [INFO] [stdout] | [INFO] [stdout] 92 | if let slack::Message::Standard {user: Some(ref user_id), [INFO] [stdout] | ^^^^ [INFO] [stdout] 93 | text: Some(ref text), [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | channel: Some(ref channel), [INFO] [stdout] | ^^^^^^^ variant `slack::Message::Standard` does not have these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_id` found for mutable reference `&mut RtmClient` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | let bot_id = cli.get_id().unwrap_or("".to_string()); [INFO] [stdout] | ^^^^^^ method not found in `&mut RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/slackhandler/mod.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | ... text: Some(ref text), [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `Some` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `at` found for struct `regex::Captures<'_>` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:73:39 [INFO] [stdout] | [INFO] [stdout] 73 | let prefix_len = captures.at(0).unwrap().len(); [INFO] [stdout] | ^^ method not found in `regex::Captures<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/yobot.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let _ = cli.send_message(&message.channel, &helps); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/listener/meme.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/listener/profound.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0046, E0050, E0053, E0277, E0308, E0407, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/slackhandler/mod.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | message = message.slice_unchecked(prefix_len, message_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/slackhandler/mod.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | if let slack::Message::Standard {user: Some(ref user_id), [INFO] [stdout] | ____________________^ [INFO] [stdout] 93 | | text: Some(ref text), [INFO] [stdout] 94 | | channel: Some(ref channel), [INFO] [stdout] 95 | | ..} = *message [INFO] [stdout] | | ^ -------- [INFO] [stdout] | | | | [INFO] [stdout] | | | this expression has type `Box` [INFO] [stdout] | |________________________________________________| help: consider dereferencing the boxed value: `**message` [INFO] [stdout] | expected struct `Box`, found enum `slack::Message` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found enum `slack::Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0026]: variant `slack::Message::Standard` does not have fields named `user`, `text`, `channel` [INFO] [stdout] --> src/slackhandler/mod.rs:92:46 [INFO] [stdout] | [INFO] [stdout] 92 | if let slack::Message::Standard {user: Some(ref user_id), [INFO] [stdout] | ^^^^ [INFO] [stdout] 93 | text: Some(ref text), [INFO] [stdout] | ^^^^ [INFO] [stdout] 94 | channel: Some(ref channel), [INFO] [stdout] | ^^^^^^^ variant `slack::Message::Standard` does not have these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_id` found for mutable reference `&mut RtmClient` in the current scope [INFO] [stdout] --> src/slackhandler/mod.rs:97:34 [INFO] [stdout] | [INFO] [stdout] 97 | let bot_id = cli.get_id().unwrap_or("".to_string()); [INFO] [stdout] | ^^^^^^ method not found in `&mut RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/slackhandler/mod.rs:93:52 [INFO] [stdout] | [INFO] [stdout] 93 | ... text: Some(ref text), [INFO] [stdout] | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `Some` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message` found for reference `&RtmClient` in the current scope [INFO] [stdout] --> src/yobot.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let _ = cli.send_message(&message.channel, &helps); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&RtmClient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/listener/meme.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `yobot` [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: unused import: `std::io::Read` [INFO] [stdout] --> src/listener/profound.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 26 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0026, E0046, E0050, E0053, E0277, E0308, E0407, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0026`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a01c74b796b13ac795c213812f283ee3b18cca02edf1846ff7be0a52aeb0a2d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a01c74b796b13ac795c213812f283ee3b18cca02edf1846ff7be0a52aeb0a2d1", kill_on_drop: false }` [INFO] [stdout] a01c74b796b13ac795c213812f283ee3b18cca02edf1846ff7be0a52aeb0a2d1