Skip to content

Conversation

AbhilashG12
Copy link

@AbhilashG12 AbhilashG12 commented Aug 29, 2025

Fixes #15569

This PR resolves the missing_docs warnings for the clippy_utils::ast_utils module.

  • Enabled the #![warn(missing_docs)] lint on the module.
  • Added concise documentation for all public functions, structs, and the ident_iter submodule.

This makes the utility functions easier to understand and helps maintain documentation coverage for the crate.

@rustbot
Copy link
Collaborator

rustbot commented Aug 29, 2025

r? @y21

rustbot has assigned @y21.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 29, 2025
Copy link
Member

@samueltardieu samueltardieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the initiative.

However, the comments could be more useful for the user. Also, don't use the "fixes …" in the PR description, it doesn't fix it, it is just a small part of what needs to be done, the issue should not be auto-closed.

r? samueltardieu
@rustbot author

View changes since this review

@@ -287,14 +302,17 @@ pub fn eq_arm(l: &Arm, r: &Arm) -> bool {
&& over(&l.attrs, &r.attrs, eq_attr)
}

/// Returns `true` if the two given optional `[Label]` nodes are structurally equivalent.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those comments are not really useful. It would be more useful to indicate what happens when both labels are defined with the same identifier name, and when both of them are None. It is not clear here if two None are "structurally equivalent" just from reading the comment.

@rustbot rustbot assigned samueltardieu and unassigned y21 Aug 29, 2025
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Aug 29, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 29, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document pub functions in clippy_utils
4 participants