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
alexcrichton authored Mar 10, 2017
2 parents 29bb2b1 + 779d280 commit b622fc5
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 @@ -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;
}
},
};
Expand Down

0 comments on commit b622fc5

Please sign in to comment.