Skip to content

Clippy Book Chapter Updates Reborn: Lint Passes #10622

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

Merged
merged 3 commits into from
Apr 14, 2023

Conversation

blyxyas
Copy link
Member

@blyxyas blyxyas commented Apr 10, 2023

This PR adds a new chapter to the book: "Lint passes". No major changes apart from some re-phrasing, fixing typos... etc.

Notes

changelog: Add a new "Lint passes" chapter to the book
r? @flip1995

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 10, 2023
that every Clippy developers must make: to use
[`EarlyLintPass`][early_lint_pass] or [`LateLintPass`][late_lint_pass].

In short, the `LateLintPass` has access to type information while the
Copy link
Contributor

Choose a reason for hiding this comment

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

Not only type information but also resolve: In an early pass, you usually have no information what a symbol means, so most early lints are plainly syntactic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. (Talks about that in the introduction and in the "Early Lint Pass" section)

@llogiq
Copy link
Contributor

llogiq commented Apr 14, 2023

Given that @flip1995 still seems quite busy, I think he'll be ok if I take over the review for this chapter, too, so...thank you!

@bors r+

@bors
Copy link
Contributor

bors commented Apr 14, 2023

📌 Commit b473267 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 14, 2023

⌛ Testing commit b473267 with merge 0049816...

@flip1995
Copy link
Member

Thanks, I have a 12h flight ahead of me on Sunday, where I'll look at these PRs.

@bors
Copy link
Contributor

bors commented Apr 14, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 0049816 to master...

@bors bors merged commit 0049816 into rust-lang:master Apr 14, 2023
bors added a commit that referenced this pull request Aug 16, 2023
Clippy Book Chapter Updates Reborn: Method Checking

This PR adds a new chapter to the book: "Method Checking". Some major re-phrasing was done and some changes in the code comments (apart from grammar and minor changes).

## Notes

- Requires #10595 **and** #10622 to be merged before this, or else several links will be broken
- To talk about the whole project, please use the tracking issue for the project #10597 (It also contains a timeline, discussions and more information)

changelog: Add a new "Method Checking" chapter to the book.

r? `@flip1995`
@blyxyas blyxyas deleted the book-lint_passes branch October 5, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants