Skip to content

Commit 4c919ac

Browse files
committed
Ensure out_of_scope_macro_calls lint is registered
1 parent 6868c83 commit 4c919ac

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ declare_lint_pass! {
7474
NON_CONTIGUOUS_RANGE_ENDPOINTS,
7575
NON_EXHAUSTIVE_OMITTED_PATTERNS,
7676
ORDER_DEPENDENT_TRAIT_OBJECTS,
77+
OUT_OF_SCOPE_MACRO_CALLS,
7778
OVERLAPPING_RANGE_ENDPOINTS,
7879
PATTERNS_IN_FNS_WITHOUT_BODY,
7980
PRIVATE_BOUNDS,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ check-pass
2+
3+
#![deny(unknown_lints)]
4+
#![allow(out_of_scope_macro_calls)]
5+
6+
fn main() {}

0 commit comments

Comments
 (0)