diff --git a/rust/lint/lint.txt b/rust/lint/lint.txt index cfba93a3..c9305c9e 100644 --- a/rust/lint/lint.txt +++ b/rust/lint/lint.txt @@ -17,6 +17,7 @@ Lint checks provided by rustc: explicit-outlives-requirements allow outlives requirements can be inferred ffi-unwind-calls allow call to foreign functions or function pointers with FFI-unwind ABI fuzzy-provenance-casts allow a fuzzy integer to pointer cast is used + impl-trait-overcaptures allow `impl Trait` will capture more lifetimes than possibly intended in edition 2024 keyword-idents-2018 allow detects edition keywords being used as an identifier keyword-idents-2024 allow detects edition keywords being used as an identifier let-underscore-drop allow non-binding let on a type that implements `Drop` @@ -90,6 +91,7 @@ Lint checks provided by rustc: for-loops-over-fallibles warn for-looping over an `Option` or a `Result`, which is more clearly expressed as an `if let` function-item-references warn suggest casting to a function pointer when attempting to take references to function items hidden-glob-reexports warn name introduced by a private item shadows a name introduced by a public glob re-export + impl-trait-redundant-captures warn redundant precise-capturing `use<...>` syntax on an `impl Trait` improper-ctypes warn proper use of libc types in foreign modules improper-ctypes-definitions warn proper use of libc types in foreign item definitions incomplete-features warn incomplete features that may function improperly in some or all cases