privacy: Feature gate new type privacy lints

This commit is contained in:
Vadim Petrochenkov
2023-06-15 15:47:38 +03:00
parent f9097f87c9
commit d326aed46f
17 changed files with 149 additions and 32 deletions

View File

@@ -539,6 +539,8 @@ declare_features! (
/// Allows creation of instances of a struct by moving fields that have
/// not changed from prior instances of the same struct (RFC #2528)
(active, type_changing_struct_update, "1.58.0", Some(86555), None),
/// Allows using type privacy lints (`private_interfaces`, `private_bounds`, `unnameable_types`).
(active, type_privacy_lints, "CURRENT_RUSTC_VERSION", Some(48054), None),
/// Enables rustc to generate code that instructs libstd to NOT ignore SIGPIPE.
(active, unix_sigpipe, "1.65.0", Some(97889), None),
/// Allows unsized fn parameters.