Skip to content

Build fails with interpolate_idents #26

@code-ape

Description

@code-ape

I've tried building the example on 1.2 stable and 1.4 nightly, both error with the following:

% cargo build
   Compiling interpolate_idents v0.0.3
   Compiling cpython v0.0.2
/home/foo/.multirust/toolchains/nightly/cargo/registry/src/
  github.com-0a35038f75765ae4/interpolate_idents-0.0.3/src/lib.rs:36:48: 
  36:67 error: mismatched types:
 expected `&str`,
    found `syntax::parse::token::InternedString`
(expected &-ptr,
    found struct `syntax::parse::token::InternedString`) [E0308]
/home/foo/.multirust/toolchains/nightly/cargo/registry/src/
  github.com-0a35038f75765ae4/interpolate_idents-0.0.3/src/lib.rs:36

            new_ident.push_str(ident.name.as_str());
            ^~~~~~~~~~~~~~~~~~~

note: in expansion of for loop expansion
/home/foo/.multirust/toolchains/nightly/cargo/registry/src/
  github.com-0a35038f75765ae4/interpolate_idents-0.0.3/src/lib.rs:29:17: 
  40:18 note: expansion site
/home/foo/.multirust/toolchains/nightly/cargo/registry/src/
  github.com-0a35038f75765ae4/interpolate_idents-0.0.3/src/lib.rs:36:48: 
  36:67 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to previous error
Could not compile `interpolate_idents`.

Not sure what to do to fix this, since it appears to be an issue with interpolate_idents (one of this repo's dependencies). But thought at the very least it would be good to report it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions