Skip to content

Commit

Permalink
renamed mk_nil_ptr to mk_unit_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
kenta7777 committed Sep 10, 2018
1 parent 5c3ba4a commit 2be5c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
self.mk_ptr(TypeAndMut {ty: ty, mutbl: hir::MutImmutable})
}

pub fn mk_nil_ptr(self) -> Ty<'tcx> {
pub fn mk_unit_ptr(self) -> Ty<'tcx> {
self.mk_imm_ptr(self.mk_unit())
}

Expand Down

0 comments on commit 2be5c72

Please sign in to comment.