Rollup merge of #40344 - nrc:save-container, r=eddyb

save-analysis: cope with lack of method data after a type error

Fixes #39957

r? @eddyb
This commit is contained in:
Ariel Ben-Yehuda 2017-03-11 21:57:43 +02:00 committed by GitHub
commit 8dc8f8fe53

View File

@ -395,7 +395,10 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
}
}
None => {
span_bug!(span, "Could not find container for method {}", id);
debug!("Could not find container for method {} at {:?}", id, span);
// This is not necessarily a bug, if there was a compilation error, the tables
// we need might not exist.
return None;
}
},
};