From f4552a130dc9c9ccaec31ab124c7e29a1b562cf0 Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Mon, 19 Feb 2024 10:25:44 +0100 Subject: [PATCH] rustc: remove deprecated `private_in_public` lint 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]: https://github.com/rust-lang/rust/pull/120144 --- tracing-appender/src/lib.rs | 4 +++- tracing-attributes/src/lib.rs | 4 +++- tracing-core/src/lib.rs | 4 +++- tracing-error/src/lib.rs | 4 +++- tracing-flame/src/lib.rs | 4 +++- tracing-futures/src/lib.rs | 4 +++- tracing-log/src/lib.rs | 4 +++- tracing-serde/src/lib.rs | 4 +++- tracing-subscriber/src/lib.rs | 4 +++- tracing-tower/src/lib.rs | 4 +++- tracing/src/lib.rs | 4 +++- 11 files changed, 33 insertions(+), 11 deletions(-) diff --git a/tracing-appender/src/lib.rs b/tracing-appender/src/lib.rs index 11c9682119..a578c0e5b1 100644 --- a/tracing-appender/src/lib.rs +++ b/tracing-appender/src/lib.rs @@ -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, diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index 83b5bb6b68..9dced0d732 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -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, diff --git a/tracing-core/src/lib.rs b/tracing-core/src/lib.rs index 95621e7e54..0a322c89c4 100644 --- a/tracing-core/src/lib.rs +++ b/tracing-core/src/lib.rs @@ -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, diff --git a/tracing-error/src/lib.rs b/tracing-error/src/lib.rs index 1fc37f66ac..a87cb6dcc3 100644 --- a/tracing-error/src/lib.rs +++ b/tracing-error/src/lib.rs @@ -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, diff --git a/tracing-flame/src/lib.rs b/tracing-flame/src/lib.rs index d9b2c54c26..0bb1ff437b 100644 --- a/tracing-flame/src/lib.rs +++ b/tracing-flame/src/lib.rs @@ -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, diff --git a/tracing-futures/src/lib.rs b/tracing-futures/src/lib.rs index 185b2363b3..2fe8564891 100644 --- a/tracing-futures/src/lib.rs +++ b/tracing-futures/src/lib.rs @@ -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, diff --git a/tracing-log/src/lib.rs b/tracing-log/src/lib.rs index 77b35a89df..ef43baa1c6 100644 --- a/tracing-log/src/lib.rs +++ b/tracing-log/src/lib.rs @@ -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, diff --git a/tracing-serde/src/lib.rs b/tracing-serde/src/lib.rs index 15cd2f7511..65023e6044 100644 --- a/tracing-serde/src/lib.rs +++ b/tracing-serde/src/lib.rs @@ -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, diff --git a/tracing-subscriber/src/lib.rs b/tracing-subscriber/src/lib.rs index 21cfe70dee..7f733454d5 100644 --- a/tracing-subscriber/src/lib.rs +++ b/tracing-subscriber/src/lib.rs @@ -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, diff --git a/tracing-tower/src/lib.rs b/tracing-tower/src/lib.rs index 3510071b40..f51903c8d8 100644 --- a/tracing-tower/src/lib.rs +++ b/tracing-tower/src/lib.rs @@ -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, diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index 52dd971de8..f91ebd0305 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -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,