error: Undefined Behavior: trying to retag from <wildcard> for
Unique permission at alloc114820[0x0], but no exposed tags have
suitable permission in the borrow stack for this location
... in the slice::from_raw_parts_mut via &self. This also manifested
as a test failure in Fedora builds, which run tests in release mode:
Miri flagged this as a retag error:
... in the
slice::from_raw_parts_mut
via&self
. This also manifested as a test failure in Fedora builds, which run tests in release mode:Using
RefCell
is simple way to get mutable access through&self
, and the overhead of that runtime check is irrelevant for test-mocking.