Skip to content

Basic arithmetic without overflow-checks undocumented #1729

Open
@orlp

Description

@orlp

It is documented what the semantics are of basic arithmetic when overflow-checks is turned on: https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow.

However as far as I can see it is nowhere actually specified what arithmetic is supposed to do when overflow-checks is turned off, or whether this is subject to change, hardware specifics, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions