Miri tells me that my safe code leaks memory

119 points Ok-Watercress-9624

Hey there.
I just wanted to try out miri. So i have this toy parser combinator library (Here is the link if anyone's curios)

So i ran the miri test on the State branch of my library. I didnt write any unsafe code. So i was naively expecting no memory leaks or whatsoever. Than miri told me that i have memory leaks. I guess im creating some cycles with Rc and they don't get "garbage collected". Honestly i didnt know that was possible in safe rust.

Just wanted to share