cs(clippy_lints): add detailed comments for SINGLE_RANGE_IN_VEC_INIT …#16598
cs(clippy_lints): add detailed comments for SINGLE_RANGE_IN_VEC_INIT …#16598zayutaha wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @Jarcho rustbot has assigned @Jarcho. Use Why was this reviewer chosen?The reviewer was selected based on:
|
7a8e232 to
e5242d9
Compare
|
😅 Forgot to run clippy on rust-clippy. |
Also, you forgot to remove the instructions the LLM gave you in the PR description. |
|
Sorry, I should've read it more closely. |
…lint - Added doc comments explaining what the lint does, why it is bad, and examples. - Covered inclusive ranges, open-ended ranges, and ignored infinite ranges. - Clarified start/end snippet extraction, applicability, and suggested fixes. - Updated examples for arrays and Vec initializations. Fixes rust-lang#16508
e5242d9 to
e264a69
Compare
|
Hey @llogiq ! I have updated the MR and am looking forward for your review. Thanks in advance! |
|
Hi @llogiq, It has been a couple of weeks 😄, Can you please take a look or if you are busy maybe reassign it to someone else ? |
|
Why are we trying to lint Ping @Centri3. What was the reason for suggesting |
|
@Jarcho Would it be alright if I add you as a reviewer? |
changelog: [
single_range_in_vec]: Added lint documentation with doc comments explaining the lint, its rationale, and examples covering inclusive ranges and open-ended rangesAdds documentation to the single_range_in_vec lint.
Added doc comments explaining what the lint does, why it is bad, and examples.
Covered inclusive ranges, open-ended ranges, and ignored infinite ranges.
Clarified start/end snippet extraction, applicability, and suggested fixes.
Updated examples for arrays and Vec initializations.
Fixes #16508