iovxw / rssbot

Lightweight Telegram RSS notification bot. 用于消息通知的轻量级 Telegram RSS 机器人

Home Page:http://t.me/RustRssBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译到 rssbot v1.4.3 出现报错

gelmannt opened this issue · comments

rustc 1.28.0-nightly (e3bf634e0 2018-06-28)

Compiling rssbot v1.4.3 (file:///root/rssbot)
error[E0659]: await is ambiguous
--> src/checker.rs:24:37
|
24 | let (_, chat) = await!(bot.get_chat(subscriber).send())
| ^^^^^
|
note: await could refer to the name imported here
--> src/checker.rs:3:5
|
3 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/checker.rs:31:29
|
31 | await!(bot.get_chat_member(subscriber, bot.inner.id).send())
| ^^^^^
|
note: await could refer to the name imported here
--> src/checker.rs:3:5
|
3 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:449:19
|
449 | let msg = await!(bot.message(chat_id, "正在验证 Channel".to_string()).send())?.1;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:451:29
|
451 | let channel = match await!(bot.get_chat(channel).send()) {
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:455:17
|
455 | await!(bot.edit_message_text(chat_id, msg_id, msg).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:462:13
|
462 | await!(bot.edit_message_text(chat_id, msg_id, msg).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:467:33
|
467 | let admins_list = match await!(bot.get_chat_administrators(channel_id).send()) {
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:474:17
|
474 | await!(bot.edit_message_text(chat_id, msg_id, msg).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:482:13
|
482 | await!(bot.edit_message_text(chat_id, msg_id, msg).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:488:13
|
488 | await!(bot.edit_message_text(chat_id, msg_id, msg).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/cmdhandles.rs:492:9
|
492 | await!(bot.delete_message(chat_id, msg_id).send())?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/cmdhandles.rs:2:5
|
2 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/feed.rs:319:24
|
319 | let mut resp = await!(session.perform(req))?;
| ^^^^^
|
note: await could refer to the name imported here
--> src/feed.rs:8:5
|
8 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/fetcher.rs:43:29
|
43 | await!(fetch_feed_updates(bot.clone(), db.clone(),
| ^^^^^
|
note: await could refer to the name imported here
--> src/fetcher.rs:4:5
|
4 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/fetcher.rs:49:21
|
49 | await!(Timeout::new(Duration::from_secs(1), &handle2)
| ^^^^^
|
note: await could refer to the name imported here
--> src/fetcher.rs:4:5
|
4 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/fetcher.rs:85:21
|
85 | let rss = match await!(feed::fetch_feed(
| ^^^^^
|
note: await could refer to the name imported here
--> src/fetcher.rs:4:5
|
4 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/fetcher.rs:109:27
|
109 | match await!(m) {
| ^^^^^
|
note: await could refer to the name imported here
--> src/fetcher.rs:4:5
|
4 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

error[E0659]: await is ambiguous
--> src/fetcher.rs:179:15
|
179 | match await!(r) {
| ^^^^^
|
note: await could refer to the name imported here
--> src/fetcher.rs:4:5
|
4 | use futures::prelude::*;
| ^^^^^^^^^^^^^^^^^^^
= note: await is also a builtin macro
= note: consider adding an explicit import of await to disambiguate

rustc 1.28.0-nightly (b68432d56 2018-06-12) 的情况下同样报错

commented

rustc 1.28.0-nightly (b68432d56 2018-06-12) 应该没有问题,刚刚在 CI 里通过了 https://travis-ci.org/iovxw/rssbot/jobs/392336716

错误是什么?如果还是同样错误请检查是否版本设置成功,6月12的时候还没有 await 关键字呢