]> git.lizzy.rs Git - rust.git/commitdiff
renamed mk_nil_ptr to mk_unit_ptr
authorkenta7777 <k.hasegw7@gmail.com>
Mon, 10 Sep 2018 02:09:54 +0000 (11:09 +0900)
committerkenta7777 <k.hasegw7@gmail.com>
Mon, 10 Sep 2018 02:09:54 +0000 (11:09 +0900)
src/librustc/ty/context.rs

index ddaa0444cc7f6d65012176320c993f9bf5cf2cc9..d0a569f5256bcb35d34c7980f248b5de798595dc 100644 (file)
@@ -2491,7 +2491,7 @@ pub fn mk_imm_ptr(self, ty: Ty<'tcx>) -> Ty<'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())
     }