Skip to content

Commit 7926fa1

Browse files
committedNov 19, 2015
Update unit tests in driver.
1 parent f8f2e2b commit 7926fa1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎src/librustc_driver/test.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
189189
names: &[String])
190190
-> Option<ast::NodeId> {
191191
assert!(idx < names.len());
192-
for item in &m.items {
192+
for item in &m.item_ids {
193+
let item = this.infcx.tcx.map.expect_item(item.id);
193194
if item.name.to_string() == names[idx] {
194-
return search(this, &**item, idx + 1, names);
195+
return search(this, item, idx + 1, names);
195196
}
196197
}
197198
return None;

0 commit comments

Comments
 (0)