about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarshall Bowers <elliott.codes@gmail.com>2018-09-15 15:43:44 -0400
committerMarshall Bowers <elliott.codes@gmail.com>2018-09-15 15:43:44 -0400
commit2d7176f3a3e2456092103fef5f3f2654b25f6a3d (patch)
treedb48c0ad456fc07ea176f080aa7507ef7da44510
parentfa1868d9da16f4adc2c4683690c3715786c60821 (diff)
downloadrust-2d7176f3a3e2456092103fef5f3f2654b25f6a3d.tar.gz
rust-2d7176f3a3e2456092103fef5f3f2654b25f6a3d.zip
Fix missing struct name
-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 a781f286a7b..0a7bd3d9702 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -198,7 +198,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
 
     pub fn create_region_hierarchy(&mut self, rh: &RH,
                                    parent: (region::Scope, region::ScopeDepth)) {
-        let me = region { id: rh.id, data: region::ScopeData::Node };
+        let me = region::Scope { id: rh.id, data: region::ScopeData::Node };
         self.region_scope_tree.record_scope_parent(me, Some(parent));
         for child_rh in rh.sub {
             self.create_region_hierarchy(child_rh, (me, parent.1 + 1));