File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,8 @@ impl Rewrite for ast::Ty {
827
827
828
828
rewrite_unary_prefix ( context, prefix, & * mt. ty , shape)
829
829
}
830
- ast:: TyKind :: Ref ( ref lifetime, ref mt) => {
830
+ ast:: TyKind :: Ref ( ref lifetime, _pinned, ref mt) => {
831
+ // FIXME: format pinnedness
831
832
let mut_str = format_mutability ( mt. mutbl ) ;
832
833
let mut_len = mut_str. len ( ) ;
833
834
let mut result = String :: with_capacity ( 128 ) ;
@@ -1262,7 +1263,7 @@ pub(crate) fn can_be_overflowed_type(
1262
1263
) -> bool {
1263
1264
match ty. kind {
1264
1265
ast:: TyKind :: Tup ( ..) => context. use_block_indent ( ) && len == 1 ,
1265
- ast:: TyKind :: Ref ( _, ref mutty) | ast:: TyKind :: Ptr ( ref mutty) => {
1266
+ ast:: TyKind :: Ref ( _, _ , ref mutty) | ast:: TyKind :: Ptr ( ref mutty) => {
1266
1267
can_be_overflowed_type ( context, & * mutty. ty , len)
1267
1268
}
1268
1269
_ => false ,
You can’t perform that action at this time.
0 commit comments