Skip to content

Commit 5551ae7

Browse files
committed
Fix #4.
1 parent d469469 commit 5551ae7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rust/arith-overflow-buglist.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,15 @@ This seems like a combination of a typo (or "think-o" perhaps)
182182
doing `lo - hi` instead of `hi - lo`, but also a fencepost error.
183183

184184
https://github.com/rust-lang/rust/pull/31281
185+
186+
### Type checking of tuple patterns
187+
188+
https://github.com/rust-lang/rust/pull/33864#issuecomment-221911260
189+
190+
https://github.com/rust-lang/rust/pull/33864/commits/0ca9bf394006fe635a4a76ca6fa78a70633666f0
191+
192+
This code passed in an `expected_len` rather than `max_len`, a logic
193+
error, and the arithmetic checking code caught it. (I'm not quite
194+
clear on whether there is a unit test that also could have caught it
195+
independently? It sounds like if such a test exists, it was not part
196+
of the test suite...)

0 commit comments

Comments
 (0)