We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e07372 commit 89f88faCopy full SHA for 89f88fa
1 file changed
src/fixup.rs
@@ -510,7 +510,7 @@ fn scan_right(
510
return consume_by_precedence;
511
}
512
match expr {
513
- Expr::Assign(e) => {
+ Expr::Assign(e) if e.attrs.is_empty() => {
514
if match fixup.next_operator {
515
Precedence::Unambiguous => fail_offset >= 2,
516
_ => bailout_offset >= 1,
@@ -536,7 +536,7 @@ fn scan_right(
536
Scan::Bailout
537
538
539
- Expr::Binary(e) => {
+ Expr::Binary(e) if e.attrs.is_empty() => {
540
541
Precedence::Unambiguous => {
542
fail_offset >= 2
@@ -732,8 +732,10 @@ fn scan_right(
732
733
734
Expr::Array(_)
735
+ | Expr::Assign(_)
736
| Expr::Async(_)
737
| Expr::Await(_)
738
+ | Expr::Binary(_)
739
| Expr::Block(_)
740
| Expr::Call(_)
741
| Expr::Cast(_)
0 commit comments