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 authored and alexcrichton committed Mar 10, 2017
1 parent f573db4 commit e5d1b9c
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 e5d1b9c

Please sign in to comment.