Interior mutable shared ref to constant memory is UB even when not writing #246
Labels
A-aliasing-model
Topic: Related to the aliasing model (e.g. Stacked/Tree Borrows)
C-open-question
Category: An open question that we should revisit
Current Stacked Borrows makes this UB:
To be honest I do not think there is a good reason for this. We cannot optimize much around interior mutable types, so I don't think we should require them to be writable unless we are actually mutating.
The text was updated successfully, but these errors were encountered: