• B
    Auto merge of #31977 - bluss:partial-eq-save, r=brson · 02954ae0
    bors 提交于
    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.
    02954ae0
mod.rs 65.4 KB