diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-04-15 16:01:38 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-04-15 20:53:19 +0200 |
| commit | bfd14bd90765349e6542cb77206dabe6f11e7c83 (patch) | |
| tree | e15a981b22f80cbe4467e0fb86e8eb68675a304e /src/librustc/hir | |
| parent | 19d44f2d2491cc2c5f603da79737dacac84715ef (diff) | |
| download | rust-bfd14bd90765349e6542cb77206dabe6f11e7c83.tar.gz rust-bfd14bd90765349e6542cb77206dabe6f11e7c83.zip | |
Make use of thread-safe arenas
Diffstat (limited to 'src/librustc/hir')
| -rw-r--r-- | src/librustc/hir/map/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs index 1e348e3a31c..b88185c3154 100644 --- a/src/librustc/hir/map/mod.rs +++ b/src/librustc/hir/map/mod.rs @@ -32,7 +32,7 @@ use hir::print::Nested; use hir::svh::Svh; use util::nodemap::{DefIdMap, FxHashMap}; -use arena::TypedArena; +use arena::SyncTypedArena; use std::io; use ty::TyCtxt; @@ -219,7 +219,7 @@ impl<'hir> MapEntry<'hir> { pub struct Forest { krate: Crate, pub dep_graph: DepGraph, - inlined_bodies: TypedArena<Body> + inlined_bodies: SyncTypedArena<Body> } impl Forest { @@ -227,7 +227,7 @@ impl Forest { Forest { krate, dep_graph: dep_graph.clone(), - inlined_bodies: TypedArena::new() + inlined_bodies: SyncTypedArena::new() } } |
