Skip to content

Commit 2c03e0e

Browse files
committed
Auto merge of #12976 - epage:caplints, r=ehuss
docs(ref): Find a place to comment on --cap-lints 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
2 parents a100226 + 4bf0c0c commit 2c03e0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/src/reference/manifest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,11 @@ unsafe_code = "forbid"
576576
enum_glob_use = "deny"
577577
```
578578

579+
Generally, these will only affect local development of the current package.
580+
Cargo only applies these to the current package and not to dependencies.
581+
As for dependents, Cargo suppresses lints from non-path dependencies with features like
582+
[`--cap-lints`](../../rustc/lints/levels.html#capping-lints).
583+
579584
## The `[badges]` section
580585

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

0 commit comments

Comments
 (0)