Put non_local_definitions lint back to warn-by-default
This commit is contained in:
parent
8edf2558d2
commit
2f2d5cc38d
3 changed files with 57 additions and 62 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue