mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
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 => {
|
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