diff options
| author | David Tolnay <dtolnay@gmail.com> | 2025-06-13 12:51:07 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2025-06-20 13:49:12 -0700 |
| commit | cbef8f6e0745e7ee5bcd91a482a3152a2b1dd23b (patch) | |
| tree | a04466ec579905931a75f618b8364a029e730d87 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 1ed0cbf698bbed4135eb4e47c4ac22a907dd41e9 (diff) | |
| download | rust-cbef8f6e0745e7ee5bcd91a482a3152a2b1dd23b.tar.gz rust-cbef8f6e0745e7ee5bcd91a482a3152a2b1dd23b.zip | |
Add AST pretty-printer tests involving attr on binary operation
This test currently fails (as expected).
--- stderr -------------------------------
Pretty-printer lost necessary parentheses
BEFORE: #[attr] (1 + 1)
AFTER: #[attr] 1 + 1
Pretty-printer lost necessary parentheses
BEFORE: #[attr] (1 as T)
AFTER: #[attr] 1 as T
Pretty-printer lost necessary parentheses
BEFORE: #[attr] (x = 1)
AFTER: #[attr] x = 1
Pretty-printer lost necessary parentheses
BEFORE: #[attr] (x += 1)
AFTER: #[attr] x += 1
------------------------------------------
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
