avoid redundant UB

pull/158/head
Ralf Jung 5 years ago committed by Alexis Beingessner
parent 1824951736
commit a7aa0a8944

@ -17,7 +17,7 @@ Unlike C, Undefined Behavior is pretty limited in scope in Rust. All the core
language cares about is preventing the following things: language cares about is preventing the following things:
* Dereferencing (using the `*` operator on) null, dangling, or unaligned * Dereferencing (using the `*` operator on) null, dangling, or unaligned
references or raw pointers pointers
* Reading [uninitialized memory][] * Reading [uninitialized memory][]
* Breaking the [pointer aliasing rules][] * Breaking the [pointer aliasing rules][]
* Producing invalid primitive values (either alone or as a field of a compound * Producing invalid primitive values (either alone or as a field of a compound

Loading…
Cancel
Save