Skip to content

Commit 05db5a2

Browse files
committed
Report lint in external macros
1 parent d4f7f97 commit 05db5a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/lint/builtin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ declare_lint! {
2121
declare_lint! {
2222
pub CONST_ERR,
2323
Deny,
24-
"constant evaluation detected erroneous expression"
24+
"constant evaluation detected erroneous expression",
25+
report_in_external_macro: true
2526
}
2627

2728
declare_lint! {

0 commit comments

Comments
 (0)