1
Fork 0

Revert "renamed mk_nil_ptr to mk_unit_ptr"

This reverts commit 2be5c722de.
This commit is contained in:
kenta7777 2018-09-11 22:17:43 +09:00
parent 8c53150b18
commit d7ebc20e77

View file

@ -2491,7 +2491,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
self.mk_ptr(TypeAndMut {ty: ty, mutbl: hir::MutImmutable})
}
pub fn mk_unit_ptr(self) -> Ty<'tcx> {
pub fn mk_nil_ptr(self) -> Ty<'tcx> {
self.mk_imm_ptr(self.mk_unit())
}