File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,12 @@ impl Spanned for ast::Param {
116
116
117
117
impl Spanned for ast:: GenericParam {
118
118
fn span ( & self ) -> Span {
119
- let lo = if let ast:: GenericParamKind :: Const { ty : _, kw_span } = self . kind {
119
+ let lo = if let ast:: GenericParamKind :: Const {
120
+ ty : _,
121
+ kw_span,
122
+ default : _,
123
+ } = self . kind
124
+ {
120
125
kw_span. lo ( )
121
126
} else if self . attrs . is_empty ( ) {
122
127
self . ident . span . lo ( )
Original file line number Diff line number Diff line change @@ -563,7 +563,12 @@ impl Rewrite for ast::GenericParam {
563
563
_ => { }
564
564
}
565
565
566
- if let ast:: GenericParamKind :: Const { ref ty, kw_span : _ } = & self . kind {
566
+ if let ast:: GenericParamKind :: Const {
567
+ ref ty,
568
+ kw_span : _,
569
+ default : _,
570
+ } = & self . kind
571
+ {
567
572
result. push_str ( "const " ) ;
568
573
result. push_str ( rewrite_ident ( context, self . ident ) ) ;
569
574
result. push_str ( ": " ) ;
You can’t perform that action at this time.
0 commit comments