about summary refs log tree commit diff
path: root/src/librustc_driver/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_driver/test.rs')
-rw-r--r--src/librustc_driver/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index 34f4e0e7b0c..daabf481e46 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -133,7 +133,7 @@ fn test_env<F>(source_string: &str,
 
     let arena = DroplessArena::new();
     let arenas = ty::GlobalArenas::new();
-    let hir_map = hir_map::map_crate(&mut hir_forest, defs);
+    let hir_map = hir_map::map_crate(&mut hir_forest, &defs);
 
     // run just enough stuff to build a tcx:
     let named_region_map = resolve_lifetime::krate(&sess, &*cstore, &hir_map);