leak_check: remove unused codepath
This commit is contained in:
parent
578bcbc2b4
commit
200ed9f8cd
6 changed files with 9 additions and 42 deletions
|
@ -563,7 +563,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
self.infcx.probe(|snapshot| -> Result<EvaluationResult, OverflowError> {
|
||||
let result = op(self)?;
|
||||
|
||||
match self.infcx.leak_check(true, snapshot) {
|
||||
match self.infcx.leak_check(snapshot) {
|
||||
Ok(()) => {}
|
||||
Err(_) => return Ok(EvaluatedToErr),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue