From 2f2d5cc38dd2edac0260db06ff052a4f2ea87f31 Mon Sep 17 00:00:00 2001 From: Urgau Date: Tue, 19 Mar 2024 19:36:58 +0100 Subject: Put non_local_definitions lint back to warn-by-default --- compiler/rustc_lint/src/non_local_def.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_lint') diff --git a/compiler/rustc_lint/src/non_local_def.rs b/compiler/rustc_lint/src/non_local_def.rs index 80e2c655203..1e9c60a540d 100644 --- a/compiler/rustc_lint/src/non_local_def.rs +++ b/compiler/rustc_lint/src/non_local_def.rs @@ -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 } -- cgit 1.4.1-3-g733a5