From 721c680f9b103552b9302eb630029dbc25cbaf9c Mon Sep 17 00:00:00 2001 From: Alex Yusiuk <55661041+RRRadicalEdward@users.noreply.github.com> Date: Fri, 25 Jul 2025 19:51:30 +0300 Subject: [PATCH] chore: add rustc "Correctness" lints (#886) --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 44babb85..8197525d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,6 +52,10 @@ unused_unsafe = "warn" missing_unsafe_on_extern = "warn" unsafe_attr_outside_unsafe = "warn" +# == Correctness == # +ambiguous_negative_literals = "warn" +keyword_idents_2024 = "warn" # FIXME: remove when switched to 2024 edition + # == Style, readability == # elided_lifetimes_in_paths = "warn" # https://quinedot.github.io/rust-learning/dont-hide.html absolute_paths_not_starting_with_crate = "warn"