about summary refs log tree commit diff
path: root/src/librustc/hir
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-04-15 16:01:38 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-04-15 20:53:19 +0200
commitbfd14bd90765349e6542cb77206dabe6f11e7c83 (patch)
treee15a981b22f80cbe4467e0fb86e8eb68675a304e /src/librustc/hir
parent19d44f2d2491cc2c5f603da79737dacac84715ef (diff)
downloadrust-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.rs6
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()
         }
     }