diff options
| author | jumbatm <30644300+jumbatm@users.noreply.github.com> | 2020-07-03 20:14:05 +1000 |
|---|---|---|
| committer | jumbatm <30644300+jumbatm@users.noreply.github.com> | 2020-07-30 21:59:01 +1000 |
| commit | 3eaead7d51f3d680bdae596e9c4ef00bdc03403e (patch) | |
| tree | b975d9f98665096f24081c6f55a0db61dfb00a1b /src/test/codegen/src-hash-algorithm | |
| parent | 4da72f538752aad2ab4b77dad115ef5889365baf (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
