Skip to content
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

Avoid hard panic on function body with incorrect span #3800

Closed
wants to merge 1 commit into from

Conversation

estebank
Copy link
Contributor

Fix #3799 by ignoring the problem

@mati865
Copy link
Contributor

mati865 commented Feb 22, 2019

Add the test please.

@estebank
Copy link
Contributor Author

estebank commented Feb 23, 2019

I haven't been able to create a reduced test, as it seems to be a bad interaction with a macro defined in one our of dependencies, but haven't been able to identify which one. I can confirm that this change does fix the ICE I am seeing.

I do suspect it is happening with pest, though.

@estebank estebank changed the title Sidestep #3799 Avoid hard panic on function body with incorrect span Feb 23, 2019
@flip1995
Copy link
Member

This could be related to #3772

Is the macro defined in another module/file and imported with #[macro_use]?

@estebank
Copy link
Contributor Author

Closing in favor of #3805.

@estebank estebank closed this Feb 24, 2019
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.

3 participants