diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2014-04-17 05:33:58 +0900 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-13 17:24:08 -0700 |
| commit | 7f203b69559a669b623240e43080801a475f8b79 (patch) | |
| tree | 46fdb9612d11f47289c5dd81afaa9b0f4ac3bf20 /src/rustllvm/RustWrapper.cpp | |
| parent | 6d535b5b8d71e1cdbdbe54958bcfc4dd956121aa (diff) | |
| download | rust-7f203b69559a669b623240e43080801a475f8b79.tar.gz rust-7f203b69559a669b623240e43080801a475f8b79.zip | |
pprust: Add parentheses to some Expr
Some `Expr` needs parentheses when printed. For example, without parentheses, `ExprUnary(UnNeg, ExprBinary(BiAdd, ..))` becomes `-lhs + rhs` which is wrong. Those cases don't appear in ordinary code (since parentheses are explicitly added) but they can appear in manually crafted ast by extensions.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
