Commit 5a7d658
authored
fail loudly on unsized by-ref invariants (#1644)
replace the remaining todo!() paths for unsized by-ref values in
src/value_and_place.rs with explicit bug!() failures. This makes
invariant violations fail loudly instead of panicking via unfinished
code paths,and without claiming support for unsized by-ref handling
that is not actually implemented.1 parent 8635445 commit 5a7d658
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
655 | 657 | | |
656 | 658 | | |
657 | 659 | | |
658 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
659 | 667 | | |
660 | 668 | | |
661 | 669 | | |
| |||
0 commit comments