Skip to content

possible bug in procedural macro implementation? #47341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
db48x opened this issue Jan 10, 2018 · 1 comment
Closed

possible bug in procedural macro implementation? #47341

db48x opened this issue Jan 10, 2018 · 1 comment

Comments

@db48x
Copy link
Contributor

db48x commented Jan 10, 2018

I wrote a procedural macro which emits code containing a reference to std::foo::bar, and got this error:

error[E0433]: failed to resolve. Could not find `std` in `{{root}}`
 --> src/lib.rs:4:1
  |
4 | #[lisp_fn]
  | ^^^^^^^^^^ Could not find `std` in `{{root}}`

I've made a simplified testcase and put it online at https://github.com/db48x/legendary-octo-bassoon; if you check it out and run cargo test, you'll see the same error message. Obviously the testcase itself could be at fault, but it doesn't seem likely.

@pietroalbini
Copy link
Member

Duplicate of #47314.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants