Skip to content

Proc macro bug #1

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
wants to merge 1 commit into from
Closed

Proc macro bug #1

wants to merge 1 commit into from

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Feb 28, 2019

This should work but doesn't. Will need to file a rustc bug. Something about the call_site span doesn't realize that it is inside of an inline module.

error[E0583]: file not found for module `issue128`
  --> examples/tests.rs:12:5
   |
12 |     automod::dir!("examples/regression");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: name the file either issue128.rs or issue128/mod.rs inside the directory "examples"

@dtolnay
Copy link
Owner Author

dtolnay commented Feb 28, 2019

Filed rust-lang/rust#58818.

Copy link
Owner Author

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rustc bug was fixed in 1.44.0. Closing in favor of #8.

@dtolnay dtolnay closed this Sep 5, 2020
@dtolnay dtolnay deleted the bug branch September 5, 2020 19:13
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

Successfully merging this pull request may close these issues.

1 participant