Skip to content

Commit

Permalink
rustc: remove deprecated private_in_public lint
Browse files Browse the repository at this point in the history
The `private_in_public` rustc lint is now deprecated and throws a
warning on each `cargo check`. According to the rfc [0] this lint is
being substituted by three other ones: `private_interfaces`,
`private_bounds` and `unnameable_types`.
`unnameable_types` is not yet stabilized [1], so it will throw a warning,
but we will be ready when it is :)

[0]: https://rust-lang.github.io/rfcs/2145-type-privacy.html
[1]: rust-lang/rust#120144
  • Loading branch information
kaffarell committed Feb 19, 2024
1 parent 0e4a4be commit f4552a1
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 11 deletions.
4 changes: 3 additions & 1 deletion tracing-appender/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-attributes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused_allocation,
unused_comparisons,
Expand Down
4 changes: 3 additions & 1 deletion tracing-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-flame/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-futures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing-tower/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,9 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
private_interfaces,
private_bounds,
unnameable_types,
unconditional_recursion,
unused,
unused_allocation,
Expand Down

0 comments on commit f4552a1

Please sign in to comment.