about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-03 12:01:09 +0000
committerbors <bors@rust-lang.org>2023-06-03 12:01:09 +0000
commitdd0c29c934467ecc121ae73039381ae34fa3caf2 (patch)
treec51b7973aa6aa72479fb87546c0101c4c8ffc308 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent7f3bfc6ae75a47e1fd8d79b4dde79956cdd98093 (diff)
parentf9c1a7dcd976bac5b357266d273c271d457c41b0 (diff)
downloadrust-dd0c29c934467ecc121ae73039381ae34fa3caf2.tar.gz
rust-dd0c29c934467ecc121ae73039381ae34fa3caf2.zip
Auto merge of #14952 - lowr:fix/assignments-are-right-associative, r=HKalbasi
fix: assignment operators are right associative

Fixes #14944

Assignment operators, be they simple or complex, are right associative in Rust ([reference]). We need to consider that fact when computing [binding power][bp] of infix operators.

The changes in `0072_destructuring_assignment.{rs,rast}` are unexpected, but I'm pretty sure it's a typo and fixed the `.rs` file accordingly.

[reference]: https://doc.rust-lang.org/reference/expressions.html#expression-precedence
[bp]: https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions