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
This commit is contained in:
commit
8dc8f8fe53
@ -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;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user