Advanced
Rust
Q94 / 100
What is the Rust portability lint and unsafe guidelines?
Correct! Well done.
Incorrect.
The correct answer is B) The Unsafe Code Guidelines (UCG) define what unsafe Rust code may assume and is allowed to do, forming the basis of Rust's UB model
B
Correct Answer
The Unsafe Code Guidelines (UCG) define what unsafe Rust code may assume and is allowed to do, forming the basis of Rust's UB model
Explanation
The UCG (unstable, evolving) specifies allowed behaviors for unsafe code: layout guarantees, pointer provenance, aliasing. Violating UCG is UB even if it appears to work.
Progress
94/100