-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Replace #[rustc_args_required_const(n)] with per-argument attr #69282
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.F-param_attrs`#![feature(param_attrs)]``#![feature(param_attrs)]`
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.F-param_attrs`#![feature(param_attrs)]``#![feature(param_attrs)]`
Type
Fields
Give feedbackNo fields configured for issues without a type.
RFC 2565, which was recently stabilized, allows individual function parameters to have attributes. One of the motivating examples for that RFC was the ugliness of
#[rustc_args_required_const], which specifies the const argument(s) by index. We should transition away from#[rustc_args_required_const]to a per-argument attribute.@petrochenkov has proposed
#[rustc_required_const]. These attributes are perma-unstable so there are no backwards compatibility concerns.