about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-02-29 21:27:20 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-02-29 21:27:20 +0100
commit190af51f303e21e22ea0a4d7dffeb09805d19010 (patch)
tree8b67a748b9c4b880533a465a0b1927a2ea2f1ff0 /src/rustllvm/RustWrapper.cpp
parent09130044ce7429beb95742afa7fd371960dbe607 (diff)
downloadrust-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