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:
parent
1ba6fa4777
commit
1adbb4520b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue