Skip to content

Doc: "unsafe turns off safety checks" is misleading #14489

Closed
@SimonSapin

Description

@SimonSapin

http://doc.rust-lang.org/intro.html#a-footnote:-unsafe currently says:

Within an unsafe block, Rust turns off many of its safety checks.

This is misleading and should not be in the documentation. For example, unsafe {} does not let you use a moved value. Instead, it lets you use features (such as raw pointers and transmute) that are otherwise forbidden.

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