about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorEduard Bopp <eduard.bopp@aepsil0n.de>2014-02-18 13:40:25 +0100
committerEduard Bopp <eduard.bopp@aepsil0n.de>2014-02-22 16:32:48 +0100
commit9982de6397197a63a093e7b79851d1915ef783d7 (patch)
treefb770270ad79bc8936bfab1ae47d044204b2af5e /src/rustllvm/ExecutionEngineWrapper.cpp
parentc48babe546751c6ad252cf7c292394aab693af30 (diff)
downloadrust-9982de6397197a63a093e7b79851d1915ef783d7.tar.gz
rust-9982de6397197a63a093e7b79851d1915ef783d7.zip
Warn about unnecessary parentheses upon assignment
Closes #12366.

Parentheses around assignment statements such as

    let mut a = (0);
    a = (1);
    a += (2);

are not necessary and therefore an unnecessary_parens warning is raised when
statements like this occur.

The warning mechanism was refactored along the way to allow for code reuse
between the routines for checking expressions and statements.

Code had to be adopted throughout the compiler and standard libraries to comply
with this modification of the lint.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions