This issue is currently being tracked on the clippy repository with this issue: rust-lang/rust-clippy#5238 And a fix to it is waiting on: https://github.com/rust-lang/rust/pull/69562