]> git.lizzy.rs Git - rust.git/commitdiff
prohibit_generics: update has_err for consts
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Sun, 29 Mar 2020 16:34:42 +0000 (18:34 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Mar 2020 16:34:42 +0000 (18:34 +0200)
src/librustc_typeck/astconv.rs

index 07630d7969e81178839b5c7efa597cc53c5b073b..5f444a5fd2dec52ca735d65ce110319bf266b6e3 100644 (file)
@@ -2440,6 +2440,7 @@ pub fn prohibit_generics<'a, T: IntoIterator<Item = &'a hir::PathSegment<'a>>>(
                             continue;
                         }
                         err_for_ct = true;
+                        has_err = true;
                         (ct.span, "const")
                     }
                 };