Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fc90d13

Browse files
authoredJul 1, 2024
Rollup merge of #127191 - beetrees:register-out-of-scope-macro-calls, r=compiler-errors
Ensure `out_of_scope_macro_calls` lint is registered Fixes part of #126984 (comment).
2 parents 5d429f4 + 4c919ac commit fc90d13

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)
Failed to load comments.