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.
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.