Skip to content

Commit

Permalink
docs(ref): Find a place to comment on --cap-lints
Browse files Browse the repository at this point in the history
Looking over the points of confusion highlighted in #5998,
one is in rustc which is agnostic of any of this policy and the rest are
in historical documents.

Inspired by previous comments, I figured we could fit this into a
discussion of `[lints]` by talking about the scope of the feature.

Fixes #5998
  • Loading branch information
epage committed Nov 14, 2023
1 parent 946fbf9 commit 37142d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doc/src/reference/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,11 @@ unsafe_code = "forbid"
enum_glob_use = "deny"
```

Generally, these will only affect local development of the current package.
Cargo only applies these to the current package and not to dependencies.
As for dependents, Cargo suppresses lints from non-path dependencies with features like
[`--cap-lints`](../../rustc/lints/levels.html#capping-lints).

## The `[badges]` section

The `[badges]` section is for specifying status badges that can be displayed
Expand Down

0 comments on commit 37142d2

Please sign in to comment.