-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add spans to clippy.toml
error messages
#10607
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @giraffate (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
3449295
to
11ed4ac
Compare
☔ The latest upstream changes (presumably #10751) made this pull request unmergeable. Please resolve the merge conflicts. |
9fb8f08
to
26e1ec5
Compare
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.
Sorry for the late reviewing. Overall looks good, thanks! I made one comment.
clippy_lints/src/utils/conf.rs
Outdated
#[derive(Debug)] | ||
struct ConfError(String); | ||
pub struct ConfError(pub String, pub Option<Span>); |
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.
IMO it would be easy to understand when accessing fields if its field has name, like error.message
and error.span
.
pub struct ConfError(pub String, pub Option<Span>); | |
pub struct ConfError { | |
pub message: String, | |
pub span: Option<Span>, | |
} |
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.
@giraffate Done
@bors r+ Thanks! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Adds spans to errors and warnings encountered when parsing
clippy.toml
.changelog: Errors and warnings generated when parsing
clippy.toml
now point to the location in the TOML file the error/warning occurred.