Skip to content

Commit

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

Ensure `out_of_scope_macro_calls` lint is registered

Fixes part of rust-lang#126984 (comment).
  • Loading branch information
matthiaskrgr authored Jul 1, 2024
2 parents c9276ad + 4c919ac commit f5ef1cd
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 f5ef1cd

Please sign in to comment.