You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error seems to be because of aliasing, but I don't understand where is the first reference to the slice...
It also seems that array-init (where I've stolen the idea of try_unfold_array method from) does not have the same issue (the same drop/fail tests for array-init: gist).
I don't understand what am I doing wrong, so I would appreciate if somebody with more experience in unsafe code will help.
The text was updated successfully, but these errors were encountered:
cargo +nightly-2020-03-16 miri test
fails onutil::init::tests::drop_on_panic
andutil::init::tests::drop_on_fail
tests with following errors:`drop_on_panic`
`drop_on_fail`
In both cases, the error is caused by
try_unfold_array::DropGuard::drop
.The error seems to be because of aliasing, but I don't understand where is the first reference to the slice...
It also seems that
array-init
(where I've stolen the idea oftry_unfold_array
method from) does not have the same issue (the same drop/fail tests forarray-init
: gist).I don't understand what am I doing wrong, so I would appreciate if somebody with more experience in unsafe code will help.
The text was updated successfully, but these errors were encountered: