Skip to content

Commit

Permalink
save-analysis: cope with lack of method data after a type error
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Mar 8, 2017
1 parent b04ebef commit 779d280
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 779d280

Please sign in to comment.