Make ArenaField private

This commit is contained in:
John Kåre Alsaker 2019-05-19 18:02:08 +02:00
parent 42145659fd
commit ad2b35bb31
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ pub trait ArenaAllocatable {}
impl<T: Copy> ArenaAllocatable for T {}
pub unsafe trait ArenaField<'tcx>: Sized {
unsafe trait ArenaField<'tcx>: Sized {
/// Returns a specific arena to allocate from.
/// If None is returned, the DropArena will be used.
fn arena<'a>(arena: &'a Arena<'tcx>) -> Option<&'a TypedArena<Self>>;