• B
    Set proper alignment on constants · 6ad079e3
    Björn Steinbrink 提交于
    For enum variants, the default alignment for a specific variant might be
    lower than the alignment of the enum type itself. In such cases we, for
    example, generate memcpy calls with an alignment that's higher than the
    alignment of the constant we copy from.
    
    To avoid that, we need to explicitly set the required alignment on
    constants.
    
    Fixes #28912.
    6ad079e3
consts.rs 2.0 KB