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

编译报错

AlphaBrock opened this issue · comments

  • 系统信息
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch
  • rust| cargo版本
rustc 1.27.0-nightly (056f589fb 2018-04-07)
cargo 1.26.0-nightly (b70ab13b3 2018-04-04)
  • 报错信息
error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:64:33
   |
64 |                     proc_macro::TokenNode::Group(delim, (s.0).0)
   |                                 ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:71:33
   |
71 |                     proc_macro::TokenNode::Op(ch, kind)
   |                                 ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:74:33
   |
74 |                     proc_macro::TokenNode::Term((s.0).0)
   |                                 ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:77:33
   |
77 |                     proc_macro::TokenNode::Literal((l.0).0)
   |                                 ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:125:29
    |
125 |                 proc_macro::TokenNode::Group(delim, s) => {
    |                             ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:134:29
    |
134 |                 proc_macro::TokenNode::Op(ch, kind) => {
    |                             ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:141:29
    |
141 |                 proc_macro::TokenNode::Term(s) => {
    |                             ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:144:29
    |
144 |                 proc_macro::TokenNode::Literal(l) => {
    |                             ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0433]: failed to resolve. Could not find `TokenNode` in `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:361:21
    |
361 |         proc_macro::TokenNode::Literal(l) => l,
    |                     ^^^^^^^^^ Could not find `TokenNode` in `proc_macro`

error[E0574]: expected struct, variant or union type, found enum `proc_macro::TokenTree`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:54:21
   |
54 |         TokenStream(proc_macro::TokenTree {
   |                     ^^^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
help: possible better candidate is found in another module, you can import it into scope
   |
1  | use TokenTree;
   |

error[E0412]: cannot find type `TokenTreeIter` in module `proc_macro`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:103:38
    |
103 | pub struct TokenTreeIter(proc_macro::TokenTreeIter);
    |                                      ^^^^^^^^^^^^^ did you mean `TokenTree`?
help: possible candidates are found in other modules, you can import them into scope
    |
1   | use TokenTreeIter;
    |
1   | use imp::TokenTreeIter;
    |

error[E0277]: the trait bound `proc_macro::TokenStream: std::iter::FromIterator<proc_macro::TokenStream>` is not satisfied
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:87:29
   |
87 |         TokenStream(streams.collect::<proc_macro::TokenStream>())
   |                             ^^^^^^^ a collection of type `proc_macro::TokenStream` cannot be built from an iterator over elements of type `proc_macro::TokenStream`
   |
   = help: the trait `std::iter::FromIterator<proc_macro::TokenStream>` is not implemented for `proc_macro::TokenStream`

error[E0599]: no function or associated item named `intern` found for type `proc_macro::Term` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:274:14
    |
274 |         Term(proc_macro::Term::intern(string))
    |              ^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Term`

error[E0599]: no function or associated item named `float` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:318:17
    |
318 |         Literal(proc_macro::Literal::float(s))
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`

error[E0599]: no function or associated item named `integer` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:322:17
    |
322 |         Literal(proc_macro::Literal::integer(s.into()))
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`

error[E0609]: no field `kind` on type `proc_macro::TokenTree`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:360:46
    |
360 |     match stream.into_iter().next().unwrap().kind {
    |                                              ^^^^

error[E0599]: no function or associated item named `u8` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `u16` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `u32` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `u64` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `usize` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `i8` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `i16` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `i32` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `i64` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `isize` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:370:25
    |
370 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
376 | / ints! {
377 | |     u8, u16, u32, u64, usize,
378 | |     i8, i16, i32, i64, isize,
379 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `f32` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:385:25
    |
385 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
391 | / floats! {
392 | |     f32, f64,
393 | | }
    | |_- in this macro invocation

error[E0599]: no function or associated item named `f64` found for type `proc_macro::Literal` in the current scope
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.1.10/src/unstable.rs:385:25
    |
385 |                   Literal(proc_macro::Literal::$t(t))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `proc_macro::Literal`
...
391 | / floats! {
392 | |     f32, f64,
393 | | }
    | |_- in this macro invocation

error: aborting due to 28 previous errors

Some errors occurred: E0277, E0412, E0433, E0574, E0599, E0609.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `proc-macro2`.

To learn more, run the command again with --verbose.

请问这是设么情况呢

同样的错误请问你解决了吗?如何解决的