Commit 9495776
committed
test: allow assert_op_expr in macro_argument_binding and use it directly
Add `assert_op_expr` to the rule's `allow_extra` list: the macro evaluates
each operand exactly once, so it carries no drop-or-duplicate hazard, unlike
the `debug_assert_op*` pair already in `deny_extra`. With the exemption in
place, pass the position expressions to `assert_op_expr!` directly instead of
binding them to locals first.
https://claude.ai/code/session_01Nj3xEp1eoDKRp1MUCxNQRQ1 parent d1e6b8b commit 9495776
2 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 255 | + | |
| 256 | + | |
261 | 257 | | |
262 | 258 | | |
263 | 259 | | |
| |||
0 commit comments