@@ -207,11 +207,11 @@ macro_rules! forward {
207
207
// Forward pattern for &mut self -> &mut Self
208
208
(
209
209
$( #[ $attrs: meta] ) *
210
- pub fn $n: ident( & mut self , $( $name: ident: $ty: ty) , * $( , ) ?) -> & mut Self
210
+ pub fn $n: ident( & mut self $( , $name: ident: $ty: ty) * $( , ) ?) -> & mut Self
211
211
) => {
212
212
$( #[ $attrs] ) *
213
213
#[ doc = concat!( "See [`Diagnostic::" , stringify!( $n) , "()`]." ) ]
214
- pub fn $n( & mut self , $( $name: $ty) , * ) -> & mut Self {
214
+ pub fn $n( & mut self $( , $name: $ty) * ) -> & mut Self {
215
215
self . diagnostic. $n( $( $name) ,* ) ;
216
216
self
217
217
}
@@ -407,8 +407,8 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
407
407
sp: impl Into <MultiSpan >,
408
408
msg: impl Into <SubdiagnosticMessage >,
409
409
) -> & mut Self ) ;
410
- forward ! ( pub fn is_lint( & mut self , ) -> & mut Self ) ;
411
- forward ! ( pub fn disable_suggestions( & mut self , ) -> & mut Self ) ;
410
+ forward ! ( pub fn is_lint( & mut self ) -> & mut Self ) ;
411
+ forward ! ( pub fn disable_suggestions( & mut self ) -> & mut Self ) ;
412
412
forward ! ( pub fn multipart_suggestion(
413
413
& mut self ,
414
414
msg: impl Into <SubdiagnosticMessage >,
0 commit comments