Closed
Description
mut is required for https://doc.servo.org/mozjs/gc/root/struct.MutableHandle.html#tymethod.set, but this is still weird as MutableHandle is clonable so &mut
does not help a lot with safety.
Originally posted by @sagudev in servo/servo#34087 (comment)
When cloning MutableHandle we still have underlying pointer point to same location, so we can have two &mut that points to same location.
Metadata
Metadata
Assignees
Labels
No labels