ambiguous-precedence Require grouping where operator precedence is easy to misread Mixed arithmetic, shift, bitwise, comparison, and logical operators can make evaluation order difficult to see. Instead, you SHOULD parenthesize each nested operation whose precedence is not conventional arithmetic. - Category: suspicious - Level: warning - Fix: automatic - Scope: module Reported function mask(offset: int64, width: int64): int64 { return 1 << offset + width; } Accepted function mask(offset: int64, width: int64): int64 { return 1 << (offset + width); } Prior art - Clippy ยท precedence language/linter/src/rules/suspicious/ambiguousprecedence.rs:12