We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Rptr
Ref
1 parent 53ca259 commit ac8eaa1Copy full SHA for ac8eaa1
src/types.rs
@@ -688,7 +688,7 @@ impl Rewrite for ast::Ty {
688
689
rewrite_unary_prefix(context, prefix, &*mt.ty, shape)
690
}
691
- ast::TyKind::Rptr(ref lifetime, ref mt) => {
+ ast::TyKind::Ref(ref lifetime, ref mt) => {
692
let mut_str = format_mutability(mt.mutbl);
693
let mut_len = mut_str.len();
694
let mut result = String::with_capacity(128);
@@ -1059,7 +1059,7 @@ pub(crate) fn can_be_overflowed_type(
1059
) -> bool {
1060
match ty.kind {
1061
ast::TyKind::Tup(..) => context.use_block_indent() && len == 1,
1062
- ast::TyKind::Rptr(_, ref mutty) | ast::TyKind::Ptr(ref mutty) => {
+ ast::TyKind::Ref(_, ref mutty) | ast::TyKind::Ptr(ref mutty) => {
1063
can_be_overflowed_type(context, &*mutty.ty, len)
1064
1065
_ => false,
0 commit comments