Skip to content
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

Typo fix in rust-lint-config.md #4

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/rust-lint-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The biggest part of configuring lints is to specify how big a problem it is when

## a secret fourth option

There's another option in `rustc`, though, that is even stricter. If we `forbid` a lint, it's like a stricter version `deny`ing it. There are a [lot of ways](#configuration) to configure lints tools like `rustc` and `clippy`, and sometimes you `deny` a lint (such as the `unsafe-code` lint) at the module level, for example, but you can still `allow` or `warn` an individual `unsafe` block. If we want to prevent this from happening, we can `#![forbid(unsafe_code)]`, and this lint will now _always_ be an error, regardless[^forbid] of other configuration that would otherwise override a `deny` level.
There's another option in `rustc`, though, that is even stricter. If we `forbid` a lint, it's like a stricter version of `deny`ing it. There are a [lot of ways](#configuration) to configure lints tools like `rustc` and `clippy`, and sometimes you `deny` a lint (such as the `unsafe-code` lint) at the module level, for example, but you can still `allow` or `warn` an individual `unsafe` block. If we want to prevent this from happening, we can `#![forbid(unsafe_code)]`, and this lint will now _always_ be an error, regardless[^forbid] of other configuration that would otherwise override a `deny` level.

## a fifth one?

Expand Down