Skip to content
Permalink
Browse files

Make ArenaField private

  • Loading branch information...
Zoxc committed May 19, 2019
1 parent 4214565 commit ad2b35bb31400f61a3ce2cee5fc9f8b43dda1065
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc/arena.rs
@@ -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>>;

0 comments on commit ad2b35b

Please sign in to comment.
You can’t perform that action at this time.