1. 24 1月, 2015 1 次提交
  2. 22 1月, 2015 1 次提交
  3. 08 1月, 2015 1 次提交
    • A
      Add isize, usize modules, deprecate int, uint modules · 7deb9abd
      Aaron Turon 提交于
      This PR introduces `isize` and `usize` modules to `core` and `std`, and
      deprecates the existing `int` and `uint` modules. The rustdoc primitive
      type links now point to these new modules.
      
      Due to deprecation this is a:
      
      [breaking-change]
      7deb9abd
  4. 20 12月, 2014 1 次提交
    • A
      Stabilize integer modules · 89f75a6e
      Aaron Turon 提交于
      This small patch stabilizes the names of all integer modules (including
      `int` and `uint`) and the `MIN` and `MAX` constants. The `BITS` and
      `BYTES` constants are left unstable for now.
      89f75a6e
  5. 19 12月, 2014 1 次提交
    • P
      librustc: Always parse `macro!()`/`macro![]` as expressions if not · ddb2466f
      Patrick Walton 提交于
      followed by a semicolon.
      
      This allows code like `vec![1i, 2, 3].len();` to work.
      
      This breaks code that uses macros as statements without putting
      semicolons after them, such as:
      
          fn main() {
              ...
              assert!(a == b)
              assert!(c == d)
              println(...);
          }
      
      It also breaks code that uses macros as items without semicolons:
      
          local_data_key!(foo)
      
          fn main() {
              println("hello world")
          }
      
      Add semicolons to fix this code. Those two examples can be fixed as
      follows:
      
          fn main() {
              ...
              assert!(a == b);
              assert!(c == d);
              println(...);
          }
      
          local_data_key!(foo);
      
          fn main() {
              println("hello world")
          }
      
      RFC #378.
      
      Closes #18635.
      
      [breaking-change]
      ddb2466f
  6. 25 6月, 2014 1 次提交
    • B
      std: Add stability attributes to primitive numeric modules · 808b848e
      Brian Anderson 提交于
      The following are unstable:
      
      - core::int, i8, i16, i32, i64
      - core::uint, u8, u16, u32, u64
      - core::int::{BITS, BYTES, MIN, MAX}, etc.
      - std::int, i8, i16, i32, i64
      - std::uint, u8, u16, u32, u64
      
      The following are experimental:
      - std::from_str::FromStr and impls - may need to return Result instead of Option
      - std::int::parse_bytes, etc. - ditto
      - std::num::FromStrRadix and impls - ditto
      - std::num::from_str_radix - ditto
      
      The following are deprecated:
      - std::num::ToStrRadix and imples - Wrapper around fmt::radix. Wrong name (Str vs String)
      
      See https://github.com/rust-lang/rust/wiki/Meeting-API-review-2014-06-23#uint
      808b848e
  7. 01 6月, 2014 1 次提交
    • A
      rustdoc: Create anchor pages for primitive types · c2e3aa37
      Alex Crichton 提交于
      This commit adds support in rustdoc to recognize the `#[doc(primitive = "foo")]`
      attribute. This attribute indicates that the current module is the "owner" of
      the primitive type `foo`. For rustdoc, this means that the doc-comment for the
      module is the doc-comment for the primitive type, plus a signal to all
      downstream crates that hyperlinks for primitive types will be directed at the
      crate containing the `#[doc]` directive.
      
      Additionally, rustdoc will favor crates closest to the one being documented
      which "implements the primitive type". For example, documentation of libcore
      links to libcore for primitive types, but documentation for libstd and beyond
      all links to libstd for primitive types.
      
      This change involves no compiler modifications, it is purely a rustdoc change.
      The landing pages for the primitive types primarily serve to show a list of
      implemented traits for the primitive type itself.
      
      The primitive types documented includes both strings and slices in a semi-ad-hoc
      way, but in a way that should provide at least somewhat meaningful
      documentation.
      
      Closes #14474
      c2e3aa37
  8. 28 5月, 2014 1 次提交
  9. 07 5月, 2014 2 次提交
    • A
      core: Get coretest working · 104e285e
      Alex Crichton 提交于
      This mostly involved frobbing imports between realstd, realcore, and the core
      being test. Some of the imports are a little counterintuitive, but it mainly
      focuses around libcore's types not implementing Show while libstd's types
      implement Show.
      104e285e
    • A
      core: Inherit the specific numeric modules · be0a1172
      Alex Crichton 提交于
      This implements all traits inside of core::num for all the primitive types,
      removing all the functionality from libstd. The std modules reexport all of the
      necessary items from the core modules.
      be0a1172
  10. 03 5月, 2014 1 次提交
  11. 29 3月, 2014 1 次提交
  12. 25 2月, 2014 1 次提交
  13. 23 2月, 2014 1 次提交
  14. 01 2月, 2014 3 次提交
  15. 30 1月, 2014 1 次提交
    • B
      Remove Times trait · 729060db
      Brendan Zabarauskas 提交于
      `Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
      729060db
  16. 25 1月, 2014 1 次提交
    • C
      Uppercase numeric constants · 988e4f0a
      Chris Wong 提交于
      The following are renamed:
      
      * `min_value` => `MIN`
      * `max_value` => `MAX`
      * `bits` => `BITS`
      * `bytes` => `BYTES`
      
      Fixes #10010.
      988e4f0a
  17. 16 1月, 2014 1 次提交
  18. 27 12月, 2013 1 次提交
  19. 30 11月, 2013 1 次提交
  20. 27 11月, 2013 2 次提交
  21. 20 11月, 2013 1 次提交
  22. 18 10月, 2013 1 次提交
  23. 16 9月, 2013 1 次提交
  24. 08 9月, 2013 1 次提交
  25. 29 8月, 2013 1 次提交
    • J
      Remove the iter module. · dc30005a
      Jason Fager 提交于
      Moves the Times trait to num while the question of whether it should
      exist at all gets hashed out as a completely separate question.
      dc30005a
  26. 06 8月, 2013 1 次提交
  27. 01 8月, 2013 1 次提交
  28. 19 6月, 2013 1 次提交
  29. 25 5月, 2013 1 次提交