File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,7 @@ TEST_XFAILS_X86 := test/run-pass/mlist-cycle.rs \
321
321
test/run-pass/vec-slice.rs \
322
322
test/run-pass/generic-fn-infer.rs \
323
323
test/run-pass/generic-recursive-tag.rs \
324
+ test/run-pass/mutable-vec-drop.rs \
324
325
test/run-pass/bind-obj-ctor.rs \
325
326
test/run-pass/task-comm.rs \
326
327
test/compile-fail/rec-missing-fields.rs \
Original file line number Diff line number Diff line change @@ -118,8 +118,11 @@ let slot_mem_ctrl (slot:Ast.slot) : mem_ctrl =
118
118
Ast. TY_port _
119
119
| Ast. TY_chan _
120
120
| Ast. TY_task
121
- | Ast. TY_vec _
122
121
| Ast. TY_str -> MEM_rc_opaque
122
+ | Ast. TY_vec _ ->
123
+ if type_has_state ty
124
+ then MEM_gc
125
+ else MEM_rc_opaque
123
126
| _ ->
124
127
match slot.Ast. slot_mode with
125
128
Ast. MODE_exterior _ when type_is_structured ty ->
You can’t perform that action at this time.
0 commit comments