diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-11-18 12:47:37 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-11-18 19:23:30 -0500 |
| commit | 7926fa1ee9947c5b46e02a58f22172c78fcae2cd (patch) | |
| tree | 08c7c715c3153c45f8ad05ac2dd863570d622778 /src | |
| parent | f8f2e2bad5b2f9753ed931ba90e615ce45e0e796 (diff) | |
| download | rust-7926fa1ee9947c5b46e02a58f22172c78fcae2cd.tar.gz rust-7926fa1ee9947c5b46e02a58f22172c78fcae2cd.zip | |
Update unit tests in driver.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_driver/test.rs | 5 |
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; |
