diff options
author | 2022-01-13 11:04:51 -0800 | |
---|---|---|
committer | 2022-01-13 17:14:17 -0800 | |
commit | 57c23fa8147e096ddb1cb94f56ac2a55a742c785 (patch) | |
tree | db3b437e8415f8bcea351db13c271503cc5d9f06 | |
parent | 8a9a97b4a066cf8c4c7784ae0a1a214d009bc50f (diff) |
Update RustDefaultVersion to 1.58.0
This CL updates the RustDefaultVersion to the new prebuilt version
number and adds an argument to suppress a new linter warning,
non-send-fields-in-send-ty, that is prone to false positives. See
https://github.com/rust-lang/rust-clippy/issues/8045 for more
information.
Test: m rust
Bug: 213921092
Change-Id: Ide568327f0a8994a6a934d14bb67b3139d0d98da
-rw-r--r-- | rust/config/global.go | 2 | ||||
-rw-r--r-- | rust/config/lints.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rust/config/global.go b/rust/config/global.go index bfb2d1ff5..bae1dc83f 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -24,7 +24,7 @@ import ( var pctx = android.NewPackageContext("android/soong/rust/config") var ( - RustDefaultVersion = "1.57.0" + RustDefaultVersion = "1.58.0" RustDefaultBase = "prebuilts/rust/" DefaultEdition = "2021" Stdlibs = []string{ diff --git a/rust/config/lints.go b/rust/config/lints.go index ef6b315e9..fe195c4c9 100644 --- a/rust/config/lints.go +++ b/rust/config/lints.go @@ -51,6 +51,7 @@ var ( // It should be assumed that any warning lint will be promoted to a // deny. defaultClippyLints = []string{ + "-A clippy::non-send-fields-in-send-ty", "-A clippy::type-complexity", "-A clippy::unnecessary-wraps", "-A clippy::unusual-byte-groupings", |