From 0950d5afe227c7097e59bf797a85267d3a659744 Mon Sep 17 00:00:00 2001 From: Tom Farmer Date: Tue, 5 Oct 2021 18:53:24 +0100 Subject: Issue 89275 fix and test Issue 89275 fix and test Fix librustdoc OverflowError usage rust tidy run Issue 89275 fix and test --- src/librustdoc/clean/blanket_impl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/librustdoc/clean') diff --git a/src/librustdoc/clean/blanket_impl.rs b/src/librustdoc/clean/blanket_impl.rs index 8135d4a2085..c2c1d369d6e 100644 --- a/src/librustdoc/clean/blanket_impl.rs +++ b/src/librustdoc/clean/blanket_impl.rs @@ -78,7 +78,8 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> { ); match infcx.evaluate_obligation(&obligation) { Ok(eval_result) if eval_result.may_apply() => {} - Err(traits::OverflowError) => {} + Err(traits::OverflowError::Cannonical) => {} + Err(traits::OverflowError::ErrorReporting) => {} _ => { return false; } -- cgit 1.4.1-3-g733a5