Skip to content

Ptr type should reason about UnsafeCell overlap #873

Closed
@joshlf

Description

@joshlf

Two requirements to add to the list of internal invariants:

  • During the lifetime 'a, no code will access* this memory region treating UnsafeCells as existing at different ranges than they exist in T
  • During the lifetime 'a, no reference will exist to this memory which treats UnsafeCells as existing at different ranges than they exist in T
  • What does "access" mean? Should this just say "loads and stores"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions