[INFO] cloning repository https://github.com/lbroot/anti302bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lbroot/anti302bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbroot%2Fanti302bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbroot%2Fanti302bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f1b199ae9c362719ac6a20919e08d3beea579d1 [INFO] testing lbroot/anti302bot against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbroot%2Fanti302bot" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lbroot/anti302bot [INFO] finished tweaking git repo https://github.com/lbroot/anti302bot [INFO] tweaked toml for git repo https://github.com/lbroot/anti302bot written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lbroot/anti302bot on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lbroot/anti302bot 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded net2 v0.2.39 [INFO] [stderr] Downloaded tempfile v3.7.0 [INFO] [stderr] Downloaded pin-project-internal v0.4.30 [INFO] [stderr] Downloaded pin-project v0.4.30 [INFO] [stderr] Downloaded serde v1.0.176 [INFO] [stderr] Downloaded hyper v0.13.10 [INFO] [stderr] Downloaded teloxide v0.3.4 [INFO] [stderr] Downloaded rustix v0.38.4 [INFO] [stderr] Downloaded tokio v0.2.25 [INFO] [stderr] Downloaded serde_derive v1.0.176 [INFO] [stderr] Downloaded linux-raw-sys v0.4.3 [INFO] [stderr] Downloaded teloxide-macros v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df642ca9441129fa90116308702ed2e472eb7097dbfa0a4ee6da8b02a14abfd6 [INFO] running `Command { std: "docker" "start" "-a" "df642ca9441129fa90116308702ed2e472eb7097dbfa0a4ee6da8b02a14abfd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df642ca9441129fa90116308702ed2e472eb7097dbfa0a4ee6da8b02a14abfd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df642ca9441129fa90116308702ed2e472eb7097dbfa0a4ee6da8b02a14abfd6", kill_on_drop: false }` [INFO] [stdout] df642ca9441129fa90116308702ed2e472eb7097dbfa0a4ee6da8b02a14abfd6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa1d2497292245cb6bc8d6f18753657ebe1b10cebcabfae8619f86c43a4431c3 [INFO] running `Command { std: "docker" "start" "-a" "aa1d2497292245cb6bc8d6f18753657ebe1b10cebcabfae8619f86c43a4431c3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling pin-project-lite v0.2.10 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling serde v1.0.176 [INFO] [stderr] Compiling serde_derive v1.0.176 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.72 [INFO] [stderr] Compiling ipnet v2.8.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.0.2 [INFO] [stderr] Compiling owned-alloc v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.7.4 [INFO] [stderr] Compiling base64 v0.21.2 [INFO] [stderr] Compiling lockfree v0.5.1 [INFO] [stderr] Compiling url v2.4.0 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling regex-automata v0.3.3 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling pin-project v1.1.2 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling teloxide-macros v0.3.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling regex v1.9.1 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling pin-project v0.4.30 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling h2 v0.3.20 [INFO] [stderr] Compiling futures-executor v0.3.28 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling hyper v0.13.10 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.18 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling teloxide v0.3.4 [INFO] [stderr] Compiling anti302bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/main.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pretty_env_logger` [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | teloxide::enable_logging!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pretty_env_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pretty_env_logger`, use `cargo add pretty_env_logger` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `teloxide::enable_logging_with_filter` which comes from the expansion of the macro `teloxide::enable_logging` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `log` [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | teloxide::enable_logging!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `teloxide::enable_logging` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `log` [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | teloxide::enable_logging!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `teloxide::enable_logging_with_filter` which comes from the expansion of the macro `teloxide::enable_logging` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/main.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::blocking::{Client, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `answer_str` found for struct `teloxide::dispatching::UpdateWithCx` in the current scope [INFO] [stdout] --> src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | cx.answer_str("aaaa").await?; [INFO] [stdout] | ^^^^^^^^^^ method not found in `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] | [INFO] [stdout] = note: the method was found for [INFO] [stdout] - `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `text` on type `teloxide::prelude::Message` [INFO] [stdout] --> src/main.rs:39:51 [INFO] [stdout] | [INFO] [stdout] 39 | let filtered_b23_url = find_b23_urls(&message.text.unwrap_or_default()); [INFO] [stdout] | ^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 39 | let filtered_b23_url = find_b23_urls(&message.text().unwrap_or_default()); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `from` on type `teloxide::prelude::Message` [INFO] [stdout] --> src/main.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | let user_name = message.from.as_ref().unwrap().first_name.clone(); [INFO] [stdout] | ^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 41 | let user_name = message.from().as_ref().unwrap().first_name.clone(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `reply_to` found for struct `teloxide::dispatching::UpdateWithCx` in the current scope [INFO] [stdout] --> src/main.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | cx.reply_to(content).await?; [INFO] [stdout] | ^^^^^^^^ method not found in `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] | [INFO] [stdout] = note: the method was found for [INFO] [stdout] - `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `delete_message` found for struct `teloxide::dispatching::UpdateWithCx` in the current scope [INFO] [stdout] --> src/main.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | cx.delete_message().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] | [INFO] [stdout] = note: the method was found for [INFO] [stdout] - `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 46 | cx.bot.delete_message().await?; [INFO] [stdout] | ++++ [INFO] [stdout] 46 | cx.update.delete_message().await?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `text` on type `teloxide::prelude::Message` [INFO] [stdout] --> src/main.rs:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(text) = message.text { [INFO] [stdout] | ^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(text) = message.text() { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `reply_to` found for struct `teloxide::dispatching::UpdateWithCx` in the current scope [INFO] [stdout] --> src/main.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | cx.reply_to(format!("https://b23.tv/{}", text)).await?; [INFO] [stdout] | ^^^^^^^^ method not found in `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] | [INFO] [stdout] = note: the method was found for [INFO] [stdout] - `teloxide::dispatching::UpdateWithCx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pretty_env_logger` [INFO] [stdout] --> src/main.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | teloxide::enable_logging!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pretty_env_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pretty_env_logger`, use `cargo add pretty_env_logger` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `teloxide::enable_logging_with_filter` which comes from the expansion of the macro `teloxide::enable_logging` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `teloxide::Bot::new`: Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode) [INFO] [stdout] --> src/main.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | let bot = Bot::new(bot_token); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `GetMe` is not a future [INFO] [stdout] --> src/main.rs:70:33 [INFO] [stdout] | [INFO] [stdout] 70 | let bot_name = bot.get_me().await.unwrap().user.username.unwrap(); [INFO] [stdout] | ^^^^^ `GetMe` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `GetMe` [INFO] [stdout] = note: GetMe must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `GetMe` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 70 - let bot_name = bot.get_me().await.unwrap().user.username.unwrap(); [INFO] [stdout] 70 + let bot_name = bot.get_me().unwrap().user.username.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `start` found for enum `Command` in the current scope [INFO] [stdout] --> src/main.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 11 | enum Command { [INFO] [stdout] | ------------ variant or associated item `start` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 71 | let commands = vec![Command::start()]; [INFO] [stdout] | ^^^^^ variant or associated item not found in `Command` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `start`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `regex_syntax::ast::visitor::Visitor` [INFO] [stdout] candidate #2: `regex_syntax::hir::visitor::Visitor` [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 71 - let commands = vec![Command::start()]; [INFO] [stdout] 71 + let commands = vec![Command::Start]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `teloxide::Bot` in the current scope [INFO] [stdout] --> src/main.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 72 | let bot = bot [INFO] [stdout] | _______________- [INFO] [stdout] 73 | | .name(bot_name) [INFO] [stdout] | | -^^^^ method not found in `teloxide::Bot` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `message` found for struct `teloxide::dispatching::Dispatcher` in the current scope [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | bot.message(Command::start().filter(|_| true), start_handler) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `text_messages` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/teloxide-0.3.4/src/dispatching/dispatcher_handler_rx_ext.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn text_messages(self) -> BoxStream<'static, (UpdateWithCx, String)> [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | Self: Stream>; [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `start` found for enum `Command` in the current scope [INFO] [stdout] --> src/main.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 11 | enum Command { [INFO] [stdout] | ------------ variant or associated item `start` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 77 | bot.message(Command::start().filter(|_| true), start_handler) [INFO] [stdout] | ^^^^^ variant or associated item not found in `Command` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `start`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `regex_syntax::ast::visitor::Visitor` [INFO] [stdout] candidate #2: `regex_syntax::hir::visitor::Visitor` [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 77 - bot.message(Command::start().filter(|_| true), start_handler) [INFO] [stdout] 77 + bot.message(Command::Start.filter(|_| true), start_handler) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `message` found for struct `teloxide::dispatching::Dispatcher` in the current scope [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | bot.message(filter::Text, remove_b23).await; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `text_messages` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/teloxide-0.3.4/src/dispatching/dispatcher_handler_rx_ext.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn text_messages(self) -> BoxStream<'static, (UpdateWithCx, String)> [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | Self: Stream>; [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `filter` [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | bot.message(filter::Text, remove_b23).await; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `filter` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `filter`, use `cargo add filter` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `message` found for struct `teloxide::dispatching::Dispatcher` in the current scope [INFO] [stdout] --> src/main.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | bot.message(filter::Text, complete_bv).await; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `text_messages` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/teloxide-0.3.4/src/dispatching/dispatcher_handler_rx_ext.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn text_messages(self) -> BoxStream<'static, (UpdateWithCx, String)> [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | Self: Stream>; [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `filter` [INFO] [stdout] --> src/main.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | bot.message(filter::Text, complete_bv).await; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `filter` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `filter`, use `cargo add filter` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `polling` found for struct `teloxide::dispatching::Dispatcher` in the current scope [INFO] [stdout] --> src/main.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | bot.polling().await.unwrap(); [INFO] [stdout] | ^^^^^^^ method not found in `teloxide::dispatching::Dispatcher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `url::Url::into_string`: use Into [INFO] [stdout] --> src/main.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | r.into_string() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599, E0615, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anti302bot` (bin "anti302bot") due to 23 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "aa1d2497292245cb6bc8d6f18753657ebe1b10cebcabfae8619f86c43a4431c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa1d2497292245cb6bc8d6f18753657ebe1b10cebcabfae8619f86c43a4431c3", kill_on_drop: false }` [INFO] [stdout] aa1d2497292245cb6bc8d6f18753657ebe1b10cebcabfae8619f86c43a4431c3