-
Notifications
You must be signed in to change notification settings - Fork 250
Warn when something derives Debug
#751
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
Comments
Unfortunately, this is a really difficult problem to solve (... as is everything else that we haven't fixed yet 😛). The issue is that rust-gpu never sees anything like This issue is mentioned in #744. |
You could warn on any |
Unfortunately it's not that simple. We need to consider all sorts of edge cases - for example, saying "you can't use |
Right, that's how you phrase the warning, if the detection algorithm is coarse, so is the error message. FWIW I think something like the following would be enough, but you could be smarter about the message with a blocklist of all the
|
Closing this as a won't fix for now. I'll keep it in #744 as a reference. |
When a struct derives the
Debug
trait, compilation fails with a strange error. For instance this structFails with the error:
While the error is probably expected, I still searched for a while until I found the error. It would probably be nice to have an error like "Debug not supported".
The text was updated successfully, but these errors were encountered: