mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Make ArenaField private
This commit is contained in:
parent
42145659fd
commit
ad2b35bb31
@ -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>>;
|
||||
|
Loading…
Reference in New Issue
Block a user