prohibit_generics: update has_err for consts

This commit is contained in:
Bastian Kauschke 2020-03-29 18:34:42 +02:00 committed by GitHub
parent 8ab82b87af
commit 8b762c5537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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")
}
};