diff --git a/src/librustc/middle/mem_categorization.rs b/src/librustc/middle/mem_categorization.rs index c9fc843ac52..bf028accac6 100644 --- a/src/librustc/middle/mem_categorization.rs +++ b/src/librustc/middle/mem_categorization.rs @@ -315,8 +315,8 @@ pub fn from_borrow_kind(borrow_kind: ty::BorrowKind) -> MutabilityCategory { ret } - pub fn from_pointer_kind(base_mutbl: MutabilityCategory, - ptr: PointerKind) -> MutabilityCategory { + fn from_pointer_kind(base_mutbl: MutabilityCategory, + ptr: PointerKind) -> MutabilityCategory { let ret = match ptr { Unique => { base_mutbl.inherit()