-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add dynamic diagnostic #262
Conversation
Do you agree with |
How generic should this class be? I tried using generic types with defaults: struct DynamicDiagnostic<D = String, C = String, ...>
where
D: Debug + Display,
C: Debug + Display,
...
{
pub description: D,
pub code: Option<C>,
...
} But this was ambiguous if using let diag: DynamicDiagnostic<&str, String, ...> = DynamicDiagnostic {
description: "",
code: None,
...
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far! I don't think this needs to be generic, tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really great so much! Thanks for taking this on! Just a couple more comments and I think we're good to merge?
is |
@gavrilikhin-d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're good now! I know this was a lot of back and forth but I think we got somewhere very nice. Thanks so much for your time and effort!!
looks like you have a clippy thing too |
Why tests fail on windows? Looks like it can't find local arguments and assumes they are named arguments |
I think 1.56.0 is before format argument interpolation was stabilized, now that I think about it |
@zkat how can I fix it? See no way to conditionally compile code depending on rust version. My best guess is to introduce new default feature |
Now it will pass workflow (checked in my fork) |
Yay! It's in!! |
Draft for dynamic diagnostics for design discussion.
Implements #259