'-Wlogical-op-parentheses analog in rustc

C++ compilers have an option to warn against writing a || b && c without parentheses (clang and gcc do this automatically on -Wall, the specific option in clang is called -Wlogical-op-parentheses). Is there an analogous feature in rustc?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source