diff options
| author | bors <bors@rust-lang.org> | 2016-03-18 14:36:49 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-18 14:36:49 -0700 |
| commit | 02954ae0a86c5c2f00e9e06b520999c1e67e9cd7 (patch) | |
| tree | 82dbdf0e43aa662e476a1e2d609f29ec10ca9c64 /src/rustllvm/RustWrapper.cpp | |
| parent | fc9e1d0f55f721461b73628f12cf64de31be55af (diff) | |
| parent | edcc02bfee262ce8bc3f087d9793ce68d73b1a40 (diff) | |
| download | rust-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
