rustc: Don't continue to resolve if there's an error in lang_items

This confused me when it happened.
This commit is contained in:
Tim Chevalier 2013-06-14 17:55:38 -07:00
parent 1ba6fa4777
commit 1adbb4520b

View File

@ -441,5 +441,6 @@ pub fn collect_language_items(crate: @crate,
let mut collector = LanguageItemCollector(crate, session);
collector.collect();
let LanguageItemCollector { items, _ } = collector;
session.abort_if_errors();
items
}