Don't use untrusted Deref/DerefMut traits for generic backends #529
Labels
discussion
draft
Add if this issue includes suggested code, compares interfaces, preparses wording,etc
These traits are simply not reliable for "backend" generics, i.e. when you need to trust the implementor for some kind of temporal consistency (that the length they tell you about is consistent with what the slice the deref call returns the next time it's called and so on).
See also rust-lang/rust#29701 and rust-lang/rust#29701 (comment) for context.
The text was updated successfully, but these errors were encountered: