about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-03-19 19:36:58 +0100
committerUrgau <urgau@numericable.fr>2024-04-05 19:25:58 +0200
commit2f2d5cc38dd2edac0260db06ff052a4f2ea87f31 (patch)
treef1e54945181a3246eb6ab6745afa1d0f04af2fea /compiler
parent8edf2558d286a9c5af455621902a5d7687c52259 (diff)
downloadrust-2f2d5cc38dd2edac0260db06ff052a4f2ea87f31.tar.gz
rust-2f2d5cc38dd2edac0260db06ff052a4f2ea87f31.zip
Put non_local_definitions lint back to warn-by-default
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_lint/src/non_local_def.rs2
1 files changed, 1 insertions, 1 deletions
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
 }