Skip to content

Document what unsafety means in rust #9144

Closed
@brson

Description

@brson

This is always under debate. Here are some things that are currently considered unsafe:

  • Anything that can cause segfaults, invalid reads (memory unsafety)
  • Anything that can create invalid utf8 strings
  • Anything that can invoke undefined behavior (ptr::offset)
  • Data races
  • Deadlocks (in extra::arc)

Things that are not typically considered unsafe:

  • Deadlocks

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