Commit 27ebeb8
committed
trait_sel: re-order host effect evaluations
When evaluating a host effect predicate on an opaque in `addr2line`,
running `evaluate_host_effect_from_bounds` first would create an opaque
type which wouldn't be removed from opaque type storage and that would
cause a delayed bug - creating a small reproduction of this has been
tricky but if `builtin_impls` checking is moved below
`evaluate_host_effect_from_item_bounds` then it will trigger.
The correct fix is probably to work out why the opaque type is created
and then not used, but this was particularly tricky. Given that this root
cause wasn't identified, writing a test case proved difficult.1 parent 64a7e94 commit 27ebeb8
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | | - | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
0 commit comments