about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-18 14:36:49 -0700
committerbors <bors@rust-lang.org>2016-03-18 14:36:49 -0700
commit02954ae0a86c5c2f00e9e06b520999c1e67e9cd7 (patch)
tree82dbdf0e43aa662e476a1e2d609f29ec10ca9c64 /src/rustllvm/RustWrapper.cpp
parentfc9e1d0f55f721461b73628f12cf64de31be55af (diff)
parentedcc02bfee262ce8bc3f087d9793ce68d73b1a40 (diff)
downloadrust-02954ae0a86c5c2f00e9e06b520999c1e67e9cd7.tar.gz
rust-02954ae0a86c5c2f00e9e06b520999c1e67e9cd7.zip
Auto merge of #31977 - bluss:partial-eq-save, r=brson
derive: Avoid emitting provided PartialEq, PartialOrd methods for c-like enums

derive: Avoid emitting provided PartialEq, PartialOrd method 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