Skip to content

Commit ac8eaa1

Browse files
committed
Rename Rptr to Ref in AST and HIR
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already as well.
1 parent 53ca259 commit ac8eaa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ impl Rewrite for ast::Ty {
688688

689689
rewrite_unary_prefix(context, prefix, &*mt.ty, shape)
690690
}
691-
ast::TyKind::Rptr(ref lifetime, ref mt) => {
691+
ast::TyKind::Ref(ref lifetime, ref mt) => {
692692
let mut_str = format_mutability(mt.mutbl);
693693
let mut_len = mut_str.len();
694694
let mut result = String::with_capacity(128);
@@ -1059,7 +1059,7 @@ pub(crate) fn can_be_overflowed_type(
10591059
) -> bool {
10601060
match ty.kind {
10611061
ast::TyKind::Tup(..) => context.use_block_indent() && len == 1,
1062-
ast::TyKind::Rptr(_, ref mutty) | ast::TyKind::Ptr(ref mutty) => {
1062+
ast::TyKind::Ref(_, ref mutty) | ast::TyKind::Ptr(ref mutty) => {
10631063
can_be_overflowed_type(context, &*mutty.ty, len)
10641064
}
10651065
_ => false,

0 commit comments

Comments
 (0)