From f8ffb6d4c26da02a583ec7c76a081c1e108ae0bb Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Fri, 9 Feb 2024 14:41:03 -0800 Subject: [PATCH] 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 --- rust/config/lints.go | 2 ++ 1 file changed, 2 insertions(+) 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",