[INFO] updating cached repository https://github.com/wurstmineberg/slackminebot [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 67bf339ae212fe979a100ca002711a2cacd60d8e [INFO] testing wurstmineberg/slackminebot against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwurstmineberg%2Fslackminebot" "/workspace/builds/worker-5/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wurstmineberg/slackminebot on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/wurstmineberg/slackminebot [INFO] finished tweaking git repo https://github.com/wurstmineberg/slackminebot [INFO] tweaked toml for git repo https://github.com/wurstmineberg/slackminebot written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/wurstmineberg/slackminebot already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-5/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 `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8f075e00d12123ac780f3ebb4b5cc75a7f43d56ccf1bd951bfea7f66a5940009 [INFO] running `"docker" "start" "-a" "8f075e00d12123ac780f3ebb4b5cc75a7f43d56ccf1bd951bfea7f66a5940009"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling async-compression v0.3.4 [INFO] [stderr] Compiling input_buffer v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tungstenite v0.9.2 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.5 [INFO] [stderr] Compiling hyper v0.13.6 [INFO] [stderr] Compiling hyper-tls v0.4.1 [INFO] [stderr] Compiling reqwest v0.10.6 [INFO] [stderr] Compiling slack_api v0.22.0 [INFO] [stderr] Compiling slack v0.23.0 [INFO] [stderr] Compiling slackminebot v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0407]: method `on_ping` is not a member of trait `slack::EventHandler` [INFO] [stderr] --> src/main.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 66 | fn on_ping(&mut self, _: &mut slack::RtmClient) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `slack::EventHandler` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:31:44 [INFO] [stderr] | [INFO] [stderr] 31 | let mut f = BufReader::new(try!(File::open(self.path))); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:32:28 [INFO] [stderr] | [INFO] [stderr] 32 | self.pos = try!(f.seek(SeekFrom::End(0))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:35:32 [INFO] [stderr] | [INFO] [stderr] 35 | self.pos = try!(f.seek(SeekFrom::Current(-1))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:37:21 [INFO] [stderr] | [INFO] [stderr] 37 | try!(f.read_exact(&mut buf)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:41:36 [INFO] [stderr] | [INFO] [stderr] 41 | self.pos = try!(f.seek(SeekFrom::Current(-1))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/logtail.rs:50:29 [INFO] [stderr] | [INFO] [stderr] 50 | self.pos += try!(f.read_line(&mut buf)) as u64; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0050]: method `on_event` has 4 parameters but the declaration in trait `slack::EventHandler::on_event` has 3 [INFO] [stderr] --> src/main.rs:22:17 [INFO] [stderr] | [INFO] [stderr] 22 | fn on_event(&mut self, cli: &mut slack::RtmClient, event_result: Result<&slack::Event, slack::Error>, raw_json: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 4 [INFO] [stderr] | [INFO] [stderr] = note: `on_event` from trait: `fn(&mut Self, &slack::RtmClient, slack::Event)` [INFO] [stderr] [INFO] [stderr] error[E0053]: method `on_close` has an incompatible type for trait [INFO] [stderr] --> src/main.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | fn on_close(&mut self, _: &mut slack::RtmClient) {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stderr] | [INFO] [stderr] = note: expected fn pointer `fn(&mut SlackHandler, &slack::RtmClient)` [INFO] [stderr] found fn pointer `fn(&mut SlackHandler, &mut slack::RtmClient)` [INFO] [stderr] [INFO] [stderr] error[E0053]: method `on_connect` has an incompatible type for trait [INFO] [stderr] --> src/main.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | fn on_connect(&mut self, _: &mut slack::RtmClient) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stderr] | [INFO] [stderr] = note: expected fn pointer `fn(&mut SlackHandler, &slack::RtmClient)` [INFO] [stderr] found fn pointer `fn(&mut SlackHandler, &mut slack::RtmClient)` [INFO] [stderr] [INFO] [stderr] error[E0026]: variant `slack::Event::MessageSent` does not have fields named `reply_to`, `ts`, `text` [INFO] [stderr] --> src/main.rs:57:41 [INFO] [stderr] | [INFO] [stderr] 57 | slack::Event::MessageSent { reply_to: _, ts: _, text: _ } => { [INFO] [stderr] | ^^^^^^^^ ^^ ^^^^ variant `slack::Event::MessageSent` does not have these fields [INFO] [stderr] [INFO] [stderr] error[E0027]: pattern does not mention field `0` [INFO] [stderr] --> src/main.rs:57:13 [INFO] [stderr] | [INFO] [stderr] 57 | slack::Event::MessageSent { reply_to: _, ts: _, text: _ } => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `0` [INFO] [stderr] | [INFO] [stderr] = note: trying to match a tuple variant with a struct variant pattern [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send_message` found for mutable reference `&mut slack::RtmClient` in the current scope [INFO] [stderr] --> src/main.rs:40:29 [INFO] [stderr] | [INFO] [stderr] 40 | let _ = cli.send_message("#wurstminebot-test", "I'm back!"); [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `&mut slack::RtmClient` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:44:21 [INFO] [stderr] | [INFO] [stderr] 43 | match *message { [INFO] [stderr] | -------- [INFO] [stderr] | | [INFO] [stderr] | this expression has type `std::boxed::Box` [INFO] [stderr] | help: consider dereferencing the boxed value: `**message` [INFO] [stderr] 44 | slack::Message::Standard { ts: _, channel: _, user: _, ref text, is_starred: _, pinned_to: _, reactions: _, edited: _, attachments: _ } => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::boxed::Box`, found enum `slack::Message` [INFO] [stderr] | [INFO] [stderr] = note: expected struct `std::boxed::Box` [INFO] [stderr] found enum `slack::Message` [INFO] [stderr] [INFO] [stderr] error[E0026]: variant `slack::Message::Standard` does not have fields named `ts`, `channel`, `user`, `text`, `is_starred`, `pinned_to`, `reactions`, `edited`, `attachments` [INFO] [stderr] --> src/main.rs:44:48 [INFO] [stderr] | [INFO] [stderr] 44 | slack::Message::Standard { ts: _, channel: _, user: _, ref text, is_starred: _, pinned_to: _, reactions: _, edited: _, attachments: _ } => { [INFO] [stderr] | ^^ ^^^^^^^ ^^^^ ^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ variant `slack::Message::Standard` does not have these fields [INFO] [stderr] [INFO] [stderr] error[E0027]: pattern does not mention field `0` [INFO] [stderr] --> src/main.rs:44:21 [INFO] [stderr] | [INFO] [stderr] 44 | slack::Message::Standard { ts: _, channel: _, user: _, ref text, is_starred: _, pinned_to: _, reactions: _, edited: _, attachments: _ } => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `0` [INFO] [stderr] | [INFO] [stderr] = note: trying to match a tuple variant with a struct variant pattern [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send_message` found for mutable reference `&mut slack::RtmClient` in the current scope [INFO] [stderr] --> src/main.rs:47:45 [INFO] [stderr] | [INFO] [stderr] 47 | ... let _ = cli.send_message("#wurstminebot-test", "got test msg"); [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `&mut slack::RtmClient` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `send_message` found for mutable reference `&mut slack::RtmClient` in the current scope [INFO] [stderr] --> src/main.rs:49:45 [INFO] [stderr] | [INFO] [stderr] 49 | ... let _ = cli.send_message("#wurstminebot-test", "bye"); [INFO] [stderr] | ^^^^^^^^^^^^ method not found in `&mut slack::RtmClient` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `new` found for struct `slack::RtmClient` in the current scope [INFO] [stderr] --> src/main.rs:83:37 [INFO] [stderr] | [INFO] [stderr] 83 | let mut cli = slack::RtmClient::new(&api_key); [INFO] [stderr] | ^^^ function or associated item not found in `slack::RtmClient` [INFO] [stderr] [INFO] [stderr] error: aborting due to 13 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0026, E0027, E0050, E0053, E0308, E0407, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0026`. [INFO] [stderr] error: could not compile `slackminebot`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "8f075e00d12123ac780f3ebb4b5cc75a7f43d56ccf1bd951bfea7f66a5940009"` [INFO] running `"docker" "rm" "-f" "8f075e00d12123ac780f3ebb4b5cc75a7f43d56ccf1bd951bfea7f66a5940009"` [INFO] [stdout] 8f075e00d12123ac780f3ebb4b5cc75a7f43d56ccf1bd951bfea7f66a5940009