3 ms·
> Lack of bitfield support and lack of a "restrict" keyword https://crates.io/crates/bitflags https://crates.io/crates/bitflags Rust automatically adds the a
by steveklabnik 11y ago
> Lack of bitfield support and lack of a "restrict" keyword
https://crates.io/crates/bitflags https://crates.io/crates/bitflags
Rust automatically adds the appropriate 'restrict' annotations to `&mut T` pointers, or well, does generally, but I think an LLVM bug made us take it off temporarily. Point is, this isn't something that you annotate in Rust like you do in C, you use the type system and the compiler handles it where appropriate. (It's more than just &mut T, like, UnsafeCell will also cause the annotation to _not_ happen, for example.)