Rollup merge of #65320 - memoryruins:const_err, r=oli-obk

Report `CONST_ERR` lint in external macros

fixes #65300
fixes #61058

r? @oli-obk
This commit is contained in:
Mazdak Farrokhzad 2019-10-13 13:34:36 +02:00 committed by GitHub
commit 643261aad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 1 deletions

View file

@ -21,7 +21,8 @@ declare_lint! {
declare_lint! {
pub CONST_ERR,
Deny,
"constant evaluation detected erroneous expression"
"constant evaluation detected erroneous expression",
report_in_external_macro: true
}
declare_lint! {