diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-03-11 21:57:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-11 21:57:43 +0200 |
| commit | 8dc8f8fe531d16c92e64af39669a1e40c71f8044 (patch) | |
| tree | b01c13cc59c94e380069035dcd18ff2ad3af2744 /src/librustc_save_analysis | |
| parent | c886815e949cefa9398b6c9c57a7126e743fe8eb (diff) | |
| parent | e5d1b9ca3927ea5cdfadd43c86a9f5d24671fb93 (diff) | |
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
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index 2153b30b62c..111c8370be2 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -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; } }, }; |
