you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 month ago* (1 child)

Rust has no Undefined Behaviour.

That is simply not true. See here for a list of behavior that is considered undefined in Rust: https://doc.rust-lang.org/reference/behavior-considered-undefined.html

However, most (all?) of these require the use of unsafe, which helps narrow down where the problem might be, if you trigger any of this behavior

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 3 points 1 month ago* (last edited 1 month ago)

    That is simply not true.

    Yeah that is correct.

    I was thinking in Safe Rust alone, and actually forgot about Unsafe Rust.

    Because I have so far almost never used Unsafe Rust, except for C library bindings.

  • source
  • parent