1. 12 2月, 2013 3 次提交
  2. 11 2月, 2013 1 次提交
    • B
      auto merge of #4866 : jld/rust/enum-unitlike, r=graydon · 0f04df85
      bors 提交于
      If an enum is isomorphic to unit, there's no need to use any bits to
      represent it.  The only obvious reason this wasn't the case was because
      the enum could be C-like and have a user-specified discriminant -- but
      that value is constant, so it doesn't need to be stored.
      
      This change means that all newtype-like enums have the same size (and
      layout) as their underlying type, which might be a useful property to
      have, at least in terms of making programs' low-level behavior less
      surprising.
      0f04df85
  3. 10 2月, 2013 7 次提交
  4. 09 2月, 2013 14 次提交
  5. 08 2月, 2013 15 次提交