You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"`#[splat]` is only supported on argument index {$max_valid_splatted_arg_index} or less, this `#[splat]` is on index {$first_invalid_splatted_arg_index}"
128
+
"`#[rustc_splat]` is only supported on argument index {$max_valid_splatted_arg_index} or less, this `#[rustc_splat]` is on index {$first_invalid_splatted_arg_index}"
129
+
)]
130
+
#[help(
131
+
"remove `#[rustc_splat]`, or use it on an argument closer to the start of the argument list"
129
132
)]
130
-
#[help("remove `#[splat]`, or use it on an argument closer to the start of the argument list")]
131
133
pub(crate)structInvalidSplattedArgs{
132
134
pubmax_valid_splatted_arg_index:u16,
133
135
134
136
pubfirst_invalid_splatted_arg_index:u16,
135
137
136
138
#[primary_span]
137
-
#[label("`#[splat]` is not supported here")]
139
+
#[label("`#[rustc_splat]` is not supported here")]
138
140
pubspans:Vec<Span>,
139
141
}
140
142
141
143
#[derive(Diagnostic)]
142
-
#[diag("multiple `#[splat]`s are not allowed in the same function argument list")]
143
-
#[help("remove `#[splat]` from all but one argument")]
144
+
#[diag("multiple `#[rustc_splat]`s are not allowed in the same function argument list")]
145
+
#[help("remove `#[rustc_splat]` from all but one argument")]
144
146
pub(crate)structDuplicateSplattedArgs{
145
147
#[primary_span]
146
148
pubspans:Vec<Span>,
147
149
}
148
150
149
151
#[derive(Diagnostic)]
150
-
#[diag("`...` and `#[splat]` are not allowed in the same function argument list")]
151
-
#[help("remove `#[splat]` or remove `...`")]
152
+
#[diag("`...` and `#[rustc_splat]` are not allowed in the same function argument list")]
153
+
#[help("remove `#[rustc_splat]` or remove `...`")]
152
154
pub(crate)structCVarArgsAndSplat{
153
155
#[primary_span]
154
156
pubspans:Vec<Span>,
155
157
}
156
158
157
159
#[derive(Diagnostic)]
158
-
#[diag("`#[splat]` is not allowed on closure arguments")]
159
-
#[help("remove `#[splat]` or turn the closure into a function")]
160
+
#[diag("`#[rustc_splat]` is not allowed on closure arguments")]
161
+
#[help("remove `#[rustc_splat]` or turn the closure into a function")]
160
162
pub(crate)structSplatNotAllowedOnClosures{
161
163
#[primary_span]
162
164
pubspans:Vec<Span>,
163
165
}
164
166
165
167
#[derive(Diagnostic)]
166
-
#[diag("`#[splat]` is not allowed in the arguments of functions with the `{$abi}` ABI")]
167
-
#[help("remove `#[splat]` or change the ABI")]
168
+
#[diag("`#[rustc_splat]` is not allowed in the arguments of functions with the `{$abi}` ABI")]
169
+
#[help("remove `#[rustc_splat]` or change the ABI")]
0 commit comments