about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-11-18 12:47:37 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-11-18 19:23:30 -0500
commit7926fa1ee9947c5b46e02a58f22172c78fcae2cd (patch)
tree08c7c715c3153c45f8ad05ac2dd863570d622778 /src
parentf8f2e2bad5b2f9753ed931ba90e615ce45e0e796 (diff)
downloadrust-7926fa1ee9947c5b46e02a58f22172c78fcae2cd.tar.gz
rust-7926fa1ee9947c5b46e02a58f22172c78fcae2cd.zip
Update unit tests in driver.
Diffstat (limited to 'src')
-rw-r--r--src/librustc_driver/test.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index fe9cf7cc387..e33f5df4d3d 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -189,9 +189,10 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
                       names: &[String])
                       -> Option<ast::NodeId> {
             assert!(idx < names.len());
-            for item in &m.items {
+            for item in &m.item_ids {
+                let item = this.infcx.tcx.map.expect_item(item.id);
                 if item.name.to_string() == names[idx] {
-                    return search(this, &**item, idx + 1, names);
+                    return search(this, item, idx + 1, names);
                 }
             }
             return None;