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

Print the name pattern in the error message when a declaration has to be ignored because of an error #190

Closed
sonmarcho opened this issue May 22, 2024 · 1 comment

Comments

@sonmarcho
Copy link
Member

It happens that we can't extract a declaration at all and have to ignore it. For instance, if we encounter an error when translating the signature of a function, we ignore it and print the following message:

[ERROR] ... ERROR ...
[ERROR] Could not translate the function 'foo' because of previous error

It would be useful to add the name pattern (the Rust name identifying a definition) in the error message. This would be especially useful to add builtin support for external declarations which fail to extract.

@Nadrieril
Copy link
Member

Fixed by #199 but it would be nice to add a negative test for that when we get them

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