1. 24 11月, 2014 1 次提交
  2. 23 11月, 2014 1 次提交
  3. 22 11月, 2014 1 次提交
  4. 19 11月, 2014 3 次提交
  5. 18 11月, 2014 1 次提交
  6. 17 11月, 2014 1 次提交
    • S
      Switch to purely namespaced enums · 3dcd2157
      Steven Fackler 提交于
      This breaks code that referred to variant names in the same namespace as
      their enum. Reexport the variants in the old location or alter code to
      refer to the new locations:
      
      ```
      pub enum Foo {
          A,
          B
      }
      
      fn main() {
          let a = A;
      }
      ```
      =>
      ```
      pub use self::Foo::{A, B};
      
      pub enum Foo {
          A,
          B
      }
      
      fn main() {
          let a = A;
      }
      ```
      or
      ```
      pub enum Foo {
          A,
          B
      }
      
      fn main() {
          let a = Foo::A;
      }
      ```
      
      [breaking-change]
      3dcd2157
  7. 16 11月, 2014 2 次提交
  8. 08 11月, 2014 1 次提交
  9. 07 11月, 2014 1 次提交
  10. 06 11月, 2014 2 次提交
  11. 04 11月, 2014 1 次提交
  12. 01 11月, 2014 1 次提交
  13. 29 10月, 2014 2 次提交
    • S
      Rename fail! to panic! · 7828c3dd
      Steve Klabnik 提交于
      https://github.com/rust-lang/rfcs/pull/221
      
      The current terminology of "task failure" often causes problems when
      writing or speaking about code. You often want to talk about the
      possibility of an operation that returns a Result "failing", but cannot
      because of the ambiguity with task failure. Instead, you have to speak
      of "the failing case" or "when the operation does not succeed" or other
      circumlocutions.
      
      Likewise, we use a "Failure" header in rustdoc to describe when
      operations may fail the task, but it would often be helpful to separate
      out a section describing the "Err-producing" case.
      
      We have been steadily moving away from task failure and toward Result as
      an error-handling mechanism, so we should optimize our terminology
      accordingly: Result-producing functions should be easy to describe.
      
      To update your code, rename any call to `fail!` to `panic!` instead.
      Assuming you have not created your own macro named `panic!`, this
      will work on UNIX based systems:
      
          grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g'
      
      You can of course also do this by hand.
      
      [breaking-change]
      7828c3dd
    • J
      Remove ty_bot from the type system · cca84e9e
      Jakub Bukaj 提交于
      We now instead use a fresh variable for expressions that diverge.
      cca84e9e
  14. 24 10月, 2014 1 次提交
  15. 23 10月, 2014 1 次提交
  16. 16 10月, 2014 1 次提交
  17. 10 10月, 2014 1 次提交
  18. 07 10月, 2014 1 次提交
  19. 06 10月, 2014 4 次提交
  20. 03 10月, 2014 1 次提交
  21. 02 10月, 2014 3 次提交
  22. 30 9月, 2014 1 次提交
    • M
      Fixes ICE when using reexported unit-like structs · 065a5b04
      Michael Kainer 提交于
      Fixes that unit-like structs cannot be used if they are reexported and
      used in another crate. The compiler fails with an ICE, because unit-like
      structs are exported as DefFn and the expression `UnitStruct` is
      interpreted as function pointer instead of a call to the constructor.
      
      To resolve this ambiguity tuple-like struct constructors are now exported
      as CtorFn. When `rustc::metadata::decoder` finds a CtorFn it sets a new
      flag `is_ctor` in DefFn to true.
      
      Relevant changes are in `rustc::metadata::{encoder, decoder}` and in
      `rustc::middle::ty`.
      
      Closes #12660 and #16973.
      065a5b04
  23. 29 9月, 2014 1 次提交
  24. 24 9月, 2014 1 次提交
  25. 22 9月, 2014 1 次提交
  26. 19 9月, 2014 1 次提交
    • N
      Add enum variants to the type namespace · ce0907e4
      Nick Cameron 提交于
      Change to resolve and update compiler and libs for uses.
      
      [breaking-change]
      
      Enum variants are now in both the value and type namespaces. This means that
      if you have a variant with the same name as a type in scope in a module, you
      will get a name clash and thus an error. The solution is to either rename the
      type or the variant.
      ce0907e4
  27. 18 9月, 2014 1 次提交
  28. 17 9月, 2014 2 次提交
  29. 14 9月, 2014 1 次提交