Put non_local_definitions lint back to warn-by-default · rust-lang/rust@2f2d5cc (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 2f2d5cc

Put non_local_definitions lint back to warn-by-default

File tree

3 files changed

lines changed

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ declare_lint! {
47 47 /// All nested bodies (functions, enum discriminant, array length, consts) (expect for
48 48 /// `const _: Ty = { ... }` in top-level module, which is still undecided) are checked.
49 49 pub NON_LOCAL_DEFINITIONS,
50 -Allow,
50 +Warn,
51 51 "checks for non-local definitions",
52 52 report_in_external_macro
53 53 }
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
4 4 //@ rustc-env:CARGO_CRATE_NAME=non_local_def
5 5
6 6 #![feature(inline_const)]
7 -#![warn(non_local_definitions)]
8 7
9 8 extern crate non_local_macro;
10 9