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
This is not a bug, this is expected behavior. align_to is explicitly documented to give a best-effort answer:
The method does a best effort to make the middle slice the greatest length possible for a given type and input slice, but only your algorithm's performance should depend on that, not its correctness.
The reason is that miri cannot know "how aligned" the allocation is. The 49 in a normal run can change from execution to execution, it depends on which base address got picked. miri does not pick a base address.
The following
Playground
prints
m.len()=49
in normal run, butm.len()=0
in Miri check.The text was updated successfully, but these errors were encountered: