1. 09 9月, 2014 1 次提交
  2. 04 9月, 2014 1 次提交
  3. 30 8月, 2014 1 次提交
    • P
      Unify non-snake-case lints and non-uppercase statics lints · de7abd88
      P1start 提交于
      This unifies the `non_snake_case_functions` and `uppercase_variables` lints
      into one lint, `non_snake_case`. It also now checks for non-snake-case modules.
      This also extends the non-camel-case types lint to check type parameters, and
      merges the `non_uppercase_pattern_statics` lint into the
      `non_uppercase_statics` lint.
      
      Because the `uppercase_variables` lint is now part of the `non_snake_case`
      lint, all non-snake-case variables that start with lowercase characters (such
      as `fooBar`) will now trigger the `non_snake_case` lint.
      
      New code should be updated to use the new `non_snake_case` lint instead of the
      previous `non_snake_case_functions` and `uppercase_variables` lints. All use of
      the `non_uppercase_pattern_statics` should be replaced with the
      `non_uppercase_statics` lint. Any code that previously contained non-snake-case
      module or variable names should be updated to use snake case names or disable
      the `non_snake_case` lint. Any code with non-camel-case type parameters should
      be changed to use camel case or disable the `non_camel_case_types` lint.
      
      [breaking-change]
      de7abd88
  4. 28 8月, 2014 1 次提交
  5. 22 8月, 2014 1 次提交
  6. 20 8月, 2014 4 次提交
  7. 12 8月, 2014 1 次提交
  8. 01 8月, 2014 1 次提交
    • A
      libserialize: add `error()` to `Decoder` · 5bd8edc1
      Andrew Poelstra 提交于
      A quick and dirty fix for #15036 until we get serious decoder reform.
      
      Right now it is impossible for a Decodable to signal a decode error,
      for example if it has only finitely many allowed values, is a string
      which must be encoded a certain way, needs a valid checksum, etc. For
      example in the libuuid implementation of Decodable an Option is
      unwrapped, meaning that a decode of a malformed UUID will cause the
      task to fail.
      
      Since this adds a method to the `Decoder` trait, all users will need
      to update their implementations to add it. The strategy used for the
      current implementations for JSON and EBML is to add a new entry to
      the error enum `ApplicationError(String)` which stores the string
      provided to `.error()`.
      
      [breaking-change]
      5bd8edc1
  9. 30 7月, 2014 1 次提交
  10. 19 7月, 2014 1 次提交
  11. 17 7月, 2014 2 次提交
  12. 16 7月, 2014 1 次提交
  13. 09 7月, 2014 1 次提交
  14. 05 7月, 2014 3 次提交
  15. 04 7月, 2014 1 次提交
  16. 01 7月, 2014 6 次提交
  17. 30 6月, 2014 2 次提交
    • S
      Implement RFC#28: Add PartialOrd::partial_cmp · 55cae0a0
      Steven Fackler 提交于
      I ended up altering the semantics of Json's PartialOrd implementation.
      It used to be the case that Null < Null, but I can't think of any reason
      for an ordering other than the default one so I just switched it over to
      using the derived implementation.
      
      This also fixes broken `PartialOrd` implementations for `Vec` and
      `TreeMap`.
      
      RFC: 0028-partial-cmp
      55cae0a0
    • P
      librustc: Remove the fallback to `int` for integers and `f64` for · a5bb0a3a
      Patrick Walton 提交于
      floating point numbers for real.
      
      This will break code that looks like:
      
          let mut x = 0;
          while ... {
              x += 1;
          }
          println!("{}", x);
      
      Change that code to:
      
          let mut x = 0i;
          while ... {
              x += 1;
          }
          println!("{}", x);
      
      Closes #15201.
      
      [breaking-change]
      a5bb0a3a
  18. 26 6月, 2014 1 次提交
    • M
      json: Fix handling of NaN/Infinity · e1a9899a
      mrec 提交于
      The JSON spec requires that these special values be serialized as null; the current serialization breaks any conformant JSON parser. So encoding needs to output "null",  to_json on floating-point types can return Null as well as Number, and reading null when specifically expecting a number should be interpreted as NaN. There's no way to round-trip Infinity.
      e1a9899a
  19. 25 6月, 2014 1 次提交
    • N
      librustc: Remove the fallback to `int` from typechecking. · 9e3d0b00
      Niko Matsakis 提交于
      This breaks a fair amount of code. The typical patterns are:
      
      * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`;
      
      * `println!("{}", 3)`: change to `println!("{}", 3i)`;
      
      * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`.
      
      RFC #30. Closes #6023.
      
      [breaking-change]
      9e3d0b00
  20. 22 6月, 2014 1 次提交
  21. 18 6月, 2014 1 次提交
    • N
      Remove TraitStore from ty_trait · 8e7213f6
      Nick Cameron 提交于
      Use ty_rptr/ty_uniq(ty_trait) rather than TraitStore to represent trait types.
      Also addresses (but doesn't close) #12470.
      Part of the work towards DST (#12938).
      
      [breaking-change] lifetime parameters in `&mut trait` are now invariant. They used to be contravariant.
      8e7213f6
  22. 17 6月, 2014 1 次提交
  23. 16 6月, 2014 1 次提交
  24. 15 6月, 2014 1 次提交
  25. 12 6月, 2014 2 次提交
    • A
      std: Remove i18n/l10n from format! · cac7a205
      Alex Crichton 提交于
      * The select/plural methods from format strings are removed
      * The # character no longer needs to be escaped
      * The \-based escapes have been removed
      * '{{' is now an escape for '{'
      * '}}' is now an escape for '}'
      
      Closes #14810
      [breaking-change]
      cac7a205
    • A
      rustc: Remove ~[T] from the language · 3316b1eb
      Alex Crichton 提交于
      The following features have been removed
      
      * box [a, b, c]
      * ~[a, b, c]
      * box [a, ..N]
      * ~[a, ..N]
      * ~[T] (as a type)
      * deprecated_owned_vector lint
      
      All users of ~[T] should move to using Vec<T> instead.
      3316b1eb
  26. 09 6月, 2014 1 次提交
  27. 06 6月, 2014 1 次提交