diff options
author | 2024-02-09 14:41:03 -0800 | |
---|---|---|
committer | 2024-02-09 15:36:35 -0800 | |
commit | f8ffb6d4c26da02a583ec7c76a081c1e108ae0bb (patch) | |
tree | e402df47dcb4ca8a25560ac0bcd8692a4e55a907 /rust/config/lints.go | |
parent | c7c666a3543d276dcd7cdf728bd403e4d480fedd (diff) |
Allow clippy::unnecessary_fallible_conversions
This lint is part of Rust 1.75.0, but has a lot of problems with FFI
data types that change size between 32-bit and 64-bit targets. This
makes the lint check far less useful, so we are just globally
suppressing it for now.
Bug: http://b/321303117
Test: m
Change-Id: I39531c961a26f533451d73b025caca02e593a269
Diffstat (limited to 'rust/config/lints.go')
-rw-r--r-- | rust/config/lints.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/config/lints.go b/rust/config/lints.go index 932298132..7770af03e 100644 --- a/rust/config/lints.go +++ b/rust/config/lints.go @@ -44,6 +44,7 @@ var ( // Default Rust lints that applies to Google-authored modules. defaultRustcLints = []string{ "-A deprecated", + "-A unknown_lints", "-D missing-docs", "-D warnings", "-D unsafe_op_in_unsafe_fn", @@ -53,6 +54,7 @@ var ( // deny. defaultClippyLints = []string{ "-A clippy::type-complexity", + "-A clippy::unnecessary_fallible_conversions", "-A clippy::unnecessary-wraps", "-A clippy::unusual-byte-groupings", "-A clippy::upper-case-acronyms", |