about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorjumbatm <30644300+jumbatm@users.noreply.github.com>2020-07-03 20:14:05 +1000
committerjumbatm <30644300+jumbatm@users.noreply.github.com>2020-07-30 21:59:01 +1000
commit3eaead7d51f3d680bdae596e9c4ef00bdc03403e (patch)
treeb975d9f98665096f24081c6f55a0db61dfb00a1b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent4da72f538752aad2ab4b77dad115ef5889365baf (diff)
downloadrust-3eaead7d51f3d680bdae596e9c4ef00bdc03403e.tar.gz
rust-3eaead7d51f3d680bdae596e9c4ef00bdc03403e.zip
Don't emit clashing decl lint for FFI-safe enums.
An example of an FFI-safe enum conversion is when converting
Option<NonZeroUsize> to usize. Because the Some value must be non-zero,
rustc can use 0 to represent the None variant, making this conversion is
safe. Furthermore, it can be relied on (and removing this optimisation
already would be a breaking change).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions