Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/lib.rs')
| -rw-r--r-- | crates/hir-def/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir-def/src/lib.rs b/crates/hir-def/src/lib.rs index 4431d1b3c8..0dd0a5861e 100644 --- a/crates/hir-def/src/lib.rs +++ b/crates/hir-def/src/lib.rs @@ -7,6 +7,8 @@ //! Note that `hir_def` is a work in progress, so not all of the above is //! actually true. +#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)] + #[allow(unused)] macro_rules! eprintln { ($($tt:tt)*) => { stdx::eprintln!($($tt)*) }; |