diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-02-29 21:27:20 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-02-29 21:27:20 +0100 |
| commit | 190af51f303e21e22ea0a4d7dffeb09805d19010 (patch) | |
| tree | 8b67a748b9c4b880533a465a0b1927a2ea2f1ff0 /src/rustllvm/RustWrapper.cpp | |
| parent | 09130044ce7429beb95742afa7fd371960dbe607 (diff) | |
| download | rust-190af51f303e21e22ea0a4d7dffeb09805d19010.tar.gz rust-190af51f303e21e22ea0a4d7dffeb09805d19010.zip | |
derive: Avoid emitting PartialEq::ne for c-like enums
`ne` is completely symmetrical with the method `eq`, and we can save rust code size and compilation time here if we only emit one of them when possible. One case where it's easy to recognize is when it's a C-like enum. Most other cases can not omit ne, because any value field may have a custom PartialEq implementation.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
