Commit e6b9a18
Update test expectations for StorageDead changes
The PR changes how StorageDead statements are handled during unwinding,
which affects when borrow-checker errors are detected. This causes:
1. dropck_trait_cycle_checked.rs: Fewer errors detected (3 instead of 6)
- Errors for o2.set0(&o2), o2.set1(&o3), and o3.set1(&o2) are no longer
reported, likely because StorageDead is handled differently
2. ctfe-arg-bad-borrow.rs: Error message format changed
- The error now shows 'dropped here' on a separate line
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 2ed7b45 commit e6b9a18
2 files changed
Lines changed: 5 additions & 45 deletions
File tree
- tests/ui
- dropck
- explicit-tail-calls
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 28 | | |
57 | 29 | | |
58 | 30 | | |
| |||
67 | 39 | | |
68 | 40 | | |
69 | 41 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 42 | + | |
84 | 43 | | |
85 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments