Skip to content

Add adt_const_params_restricted_privacy gate#153592

Draft
zedddie wants to merge 2 commits intorust-lang:mainfrom
zedddie:adt_const_params_restricted_privacy-gate
Draft

Add adt_const_params_restricted_privacy gate#153592
zedddie wants to merge 2 commits intorust-lang:mainfrom
zedddie:adt_const_params_restricted_privacy-gate

Conversation

@zedddie
Copy link
Contributor

@zedddie zedddie commented Mar 9, 2026

Add adt_const_params_restricted_privacy feature gate to disallow ConstParamTy_ impl for type when field and struct visibility mismatches

r? BoxyUwU

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 9, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 9, 2026

BoxyUwU is currently at their maximum review capacity.
They may take a while to respond.

/// Allows using the `unadjusted` ABI; perma-unstable.
(internal, abi_unadjusted, "1.16.0", None),
/// Restrict adt_const_params fields to share same privacy.
(internal, adt_const_params_restricted_privacy, "CURRENT_RUSTC_VERSION", None),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really not sure on whether this should be internal or unstable (I guess should share issue number with adt_const_params, so it would be unstable then)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants