thomashart17 / c-rust

Repo for hosting examples of interoperability of rust and C using LLVM 14.
0 stars 2 forks source link

Custom Vec Drop Lack of Understanding #10

Open BorisJancicUWaterloo opened 1 year ago

BorisJancicUWaterloo commented 1 year ago

In custom vec Drop, the elements in the vec need to be dropped when dynamically allocated. When the slice of the vector is dropped somewhere a loop unrolls, dropping all the elements. This loop unrolling works, while when using a while or for loop, the loop does not unroll properly We don't know why

priyasiddharth commented 1 year ago

@BorisJancicUWaterloo can you please add a job using while loop and push it to a new branch so that i study it?

priyasiddharth commented 1 year ago

pl assign it to me once the branch is ready