about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-03-29 18:34:42 +0200
committerGitHub <noreply@github.com>2020-03-29 18:34:42 +0200
commit8b762c5537b3e7b223bec3a80ab45aa3c5fe7e40 (patch)
treea1adae5bc6f85c36920759e342813088edc19c0e /src
parent8ab82b87af4f20b6c0a481e050517103d50263e9 (diff)
downloadrust-8b762c5537b3e7b223bec3a80ab45aa3c5fe7e40.tar.gz
rust-8b762c5537b3e7b223bec3a80ab45aa3c5fe7e40.zip
prohibit_generics: update has_err for consts
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/astconv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs
index 07630d7969e..5f444a5fd2d 100644
--- a/src/librustc_typeck/astconv.rs
+++ b/src/librustc_typeck/astconv.rs
@@ -2440,6 +2440,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
                             continue;
                         }
                         err_for_ct = true;
+                        has_err = true;
                         (ct.span, "const")
                     }
                 };