about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2022-03-26 23:14:47 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2022-04-04 21:06:35 +0000
commite2bba0708a1e4b0c21f94de56c2bd5d66d3b825f (patch)
treef69b605da80489e297384a9fdde5cc99396f4e8c /compiler
parent883b93c7b7eb02ec85f4b8f9fb129efc403d4fb2 (diff)
downloadrust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.tar.gz
rust-e2bba0708a1e4b0c21f94de56c2bd5d66d3b825f.zip
Fix list length
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
index 65e2554a6f2..fdafb2d3d41 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
@@ -1813,7 +1813,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
         }
 
         let len = impl_candidates.len();
-        let end = if impl_candidates.len() <= 5 { impl_candidates.len() } else { 4 };
+        let end = if impl_candidates.len() <= 9 { impl_candidates.len() } else { 8 };
 
         let normalize = |candidate| {
             self.tcx.infer_ctxt().enter(|ref infcx| {