rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.82k stars 263 forks source link

other-reprs: do not make it sound like we are making ABI promises for repr(int) enums #461

Open RalfJung opened 3 weeks ago

RalfJung commented 3 weeks ago

Until something like https://github.com/rust-lang/rust/pull/128600 lands, let's be careful what we say about this.

Also mention that repr(C) generally makes this behave the same as C ABI-wise. That's anyway what people already assume this means and are relying on in practice, so there's no point in not saying it IMO?

Cc @rust-lang/opsem @chorman0773