1. 25 6月, 2014 3 次提交
  2. 18 6月, 2014 1 次提交
  3. 12 6月, 2014 1 次提交
    • 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
  4. 02 6月, 2014 1 次提交
    • F
      docs: Stop using `notrust` · 20fb7c62
      Florian Gilcher 提交于
      Now that rustdoc understands proper language tags
      as the code not being Rust, we can tag everything
      properly.
      
      This change tags examples in other languages by
      their language. Plain notations are marked as `text`.
      Console examples are marked as `console`.
      
      Also fix markdown.rs to not highlight non-rust code.
      20fb7c62
  5. 31 5月, 2014 1 次提交
  6. 28 5月, 2014 4 次提交
  7. 25 5月, 2014 1 次提交
  8. 23 5月, 2014 1 次提交
  9. 16 5月, 2014 5 次提交
    • A
      core: Update all tests for fmt movement · 2e2160b0
      Alex Crichton 提交于
      2e2160b0
    • A
      std: Fix float tests · d12a136b
      Alex Crichton 提交于
      d12a136b
    • A
      std: Delegate some integer formatting to core::fmt · c3652520
      Alex Crichton 提交于
      In an attempt to phase out the std::num::strconv module's string formatting
      functionality, this commit reimplements some provided methods for formatting
      integers on top of format!() instead of the custom (and slower) implementation
      inside of num::strconv.
      
      Primarily, this deprecates int_to_str_bytes_common
      c3652520
    • A
      Updates with core::fmt changes · 1de4b65d
      Alex Crichton 提交于
      1. Wherever the `buf` field of a `Formatter` was used, the `Formatter` is used
         instead.
      2. The usage of `write_fmt` is minimized as much as possible, the `write!` macro
         is preferred wherever possible.
      3. Usage of `fmt::write` is minimized, favoring the `write!` macro instead.
      1de4b65d
    • A
      core: Inherit the std::fmt module · cf061938
      Alex Crichton 提交于
      This commit moves all possible functionality from the standard library's string
      formatting utilities into the core library. This is a breaking change, due to a
      few tweaks in the semantics of formatting:
      
      1. In order to break the dependency on the std::io module, a new trait,
         FormatWriter was introduced in core::fmt. This is the trait which is used
         (instead of Writer) to format data into a stream.
      2. The new FormatWriter trait has one method, write(), which takes some bytes
         and can return an error, but the error contains very little information. The
         intent for this trait is for an adaptor writer to be used around the standard
         library's Writer trait.
      3. The fmt::write{,ln,_unsafe} methods no longer take &mut io::Writer, but
         rather &mut FormatWriter. Since this trait is less common, all functions were
         removed except fmt::write, and it is not intended to be invoked directly.
      
      The main API-breaking change here is that the fmt::Formatter structure will no
      longer expose its `buf` field. All previous code writing directly to `f.buf`
      using writer methods or the `write!` macro will now instead use `f` directly.
      
      The Formatter object itself implements the `Writer` trait itself for
      convenience, although it does not implement the `FormatWriter` trait. The
      fallout of these changes will be in the following commits.
      
      [breaking-change]
      cf061938