Rename Rptr
to Ref
in AST and HIR
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already as well.
This commit is contained in:
parent
a1fc71196a
commit
9067e4417e
57 changed files with 93 additions and 97 deletions
|
@ -97,7 +97,7 @@ impl Ty {
|
|||
match self {
|
||||
Ref(ty, mutbl) => {
|
||||
let raw_ty = ty.to_ty(cx, span, self_ty, self_generics);
|
||||
cx.ty_rptr(span, raw_ty, None, *mutbl)
|
||||
cx.ty_ref(span, raw_ty, None, *mutbl)
|
||||
}
|
||||
Path(p) => p.to_ty(cx, span, self_ty, self_generics),
|
||||
Self_ => cx.ty_path(self.to_path(cx, span, self_ty, self_generics)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue