Skip to content

Commit

Permalink
Rollup merge of #127191 - beetrees:register-out-of-scope-macro-calls,…
Browse files Browse the repository at this point in the history
… r=compiler-errors

Ensure `out_of_scope_macro_calls` lint is registered

Fixes part of #126984 (comment).
  • Loading branch information
matthiaskrgr committed Jul 1, 2024
2 parents 5d429f4 + 4c919ac commit fc90d13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ declare_lint_pass! {
NON_CONTIGUOUS_RANGE_ENDPOINTS,
NON_EXHAUSTIVE_OMITTED_PATTERNS,
ORDER_DEPENDENT_TRAIT_OBJECTS,
OUT_OF_SCOPE_MACRO_CALLS,
OVERLAPPING_RANGE_ENDPOINTS,
PATTERNS_IN_FNS_WITHOUT_BODY,
PRIVATE_BOUNDS,
Expand Down
6 changes: 6 additions & 0 deletions tests/ui/macros/out-of-scope-macro-calls-lint-registered.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//@ check-pass

#![deny(unknown_lints)]
#![allow(out_of_scope_macro_calls)]

fn main() {}

0 comments on commit fc90d13

Please sign in to comment.