Skip to content

Commit

Permalink
Rollup merge of rust-lang#40344 - nrc:save-container, r=eddyb
Browse files Browse the repository at this point in the history
save-analysis: cope with lack of method data after a type error

Fixes rust-lang#39957

r? @eddyb
  • Loading branch information
Ariel Ben-Yehuda authored and alexcrichton committed Mar 10, 2017
2 parents 008bbd3 + 779d280 commit 5030922
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_save_analysis/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,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;
}
},
};
Expand Down

0 comments on commit 5030922

Please sign in to comment.