1
Fork 0

Put non_local_definitions lint back to warn-by-default

This commit is contained in:
Urgau 2024-03-19 19:36:58 +01:00
parent 8edf2558d2
commit 2f2d5cc38d
3 changed files with 57 additions and 62 deletions

View file

@ -47,7 +47,7 @@ declare_lint! {
/// All nested bodies (functions, enum discriminant, array length, consts) (expect for
/// `const _: Ty = { ... }` in top-level module, which is still undecided) are checked.
pub NON_LOCAL_DEFINITIONS,
Allow,
Warn,
"checks for non-local definitions",
report_in_external_macro
}