calebwin / emu

The write-once-run-anywhere GPGPU library for Rust
https://calebwin.github.io/emu
MIT License
1.59k stars 53 forks source link

Unable to run example at readme #28

Closed extraymond closed 4 years ago

extraymond commented 4 years ago

Hi! I tried with the example at readme, and it failed to compile with stable rustc. I tried adding em version 0.3 and from git.

    |
338 |                     i.args.insert(0, gpu_ident);
    |                                      ^^^^^^^^^ the trait `std::convert::From<quote::__rt::TokenStream>` is not implemented for `syn::Expr`
    |
    = help: the following implementations were found:
              <syn::Expr as std::convert::From<syn::ExprArray>>
              <syn::Expr as std::convert::From<syn::ExprAssign>>
              <syn::Expr as std::convert::From<syn::ExprAssignOp>>
              <syn::Expr as std::convert::From<syn::ExprAsync>>
            and 35 others
    = note: required because of the requirements on the impl of `std::convert::Into<syn::Expr>` for `quote::__rt::TokenStream`
extraymond commented 4 years ago

Sorry didn't find the same issue #27. Thx for fixing this.