-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
A-aliasing-modelTopic: Related to the aliasing model (e.g. Stacked/Tree Borrows)Topic: Related to the aliasing model (e.g. Stacked/Tree Borrows)C-open-questionCategory: An open question that we should revisitCategory: An open question that we should revisit
Description
What should the aliasing rules for local variables in a function be? Stacked Borrows currently says they behave like &mut
. For safe code that is definitely sound, but people coming from C are often surprised that there are aliasing rules to uphold even when there is no reference anywhere.
There's a c2rust translator that had to be adjusted to for this rule, and also see this discussion.
elichai
Metadata
Metadata
Assignees
Labels
A-aliasing-modelTopic: Related to the aliasing model (e.g. Stacked/Tree Borrows)Topic: Related to the aliasing model (e.g. Stacked/Tree Borrows)C-open-questionCategory: An open question that we should revisitCategory: An open question that we should revisit