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

Improve trait unimplemented error messages with #[diagnostic::on_unimplemented] #13

Open
niklasdewally opened this issue Sep 27, 2024 · 1 comment

Comments

@niklasdewally
Copy link
Collaborator

Using #[diagnostic::on_unimplemented], we should alter the message given when a Biplate or Uniplate instance is missing.

For example:

Biplate<String> is not implemented for Expression
help: add #[derive(Uniplate] and #[biplate(to=String) to the declaration of Expression

https://www.reddit.com/r/rust/comments/1fpwvcj/psa_use_diagnosticon_unimplemented_its_amazing/
https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-diagnosticon_unimplemented-attribute

@ozgurakgun
Copy link
Contributor

Sounds good!

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