]> git.lizzy.rs Git - rust.git/commitdiff
Return whether `check_generic_arg_count` finds an error
authorvarkor <github@varkor.com>
Mon, 20 Jan 2020 22:16:42 +0000 (22:16 +0000)
committervarkor <github@varkor.com>
Sat, 22 Feb 2020 00:27:44 +0000 (00:27 +0000)
src/librustc_typeck/astconv.rs

index 78c05a51e4fbd19df1ba9da033ed370a650bdbcd..599fb7c57f794101e1fca0afb526be35210c2595 100644 (file)
@@ -402,10 +402,7 @@ fn check_generic_arg_count(
             }
             err.emit();
 
-            (
-                provided > required, // `suppress_error`
-                potential_assoc_types,
-            )
+            (true, potential_assoc_types)
         };
 
         if reported_late_bound_region_err.is_none()