1. 13 11月, 2014 1 次提交
  2. 07 11月, 2014 1 次提交
  3. 29 10月, 2014 1 次提交
    • 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
  4. 20 10月, 2014 1 次提交
    • A
      Remove a large amount of deprecated functionality · 9d5d97b5
      Alex Crichton 提交于
      Spring cleaning is here! In the Fall! This commit removes quite a large amount
      of deprecated functionality from the standard libraries. I tried to ensure that
      only old deprecated functionality was removed.
      
      This is removing lots and lots of deprecated features, so this is a breaking
      change. Please consult the deprecation messages of the deleted code to see how
      to migrate code forward if it still needs migration.
      
      [breaking-change]
      9d5d97b5
  5. 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
  6. 27 7月, 2014 1 次提交
  7. 25 6月, 2014 2 次提交
  8. 19 6月, 2014 1 次提交
  9. 31 5月, 2014 1 次提交
  10. 28 5月, 2014 1 次提交
  11. 23 5月, 2014 1 次提交
  12. 14 5月, 2014 1 次提交
    • A
      Touch up and rebase previous commits · 12375304
      Alex Crichton 提交于
      * Added `// no-pretty-expanded` to pretty-print a test, but not run it through
        the `expanded` variant.
      * Removed #[deriving] and other expanded attributes after they are expanded
      * Removed hacks around &str and &&str and friends (from both the parser and the
        pretty printer).
      * Un-ignored a bunch of tests
      12375304
  13. 07 5月, 2014 1 次提交
    • P
      librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, except · 090040bf
      Patrick Walton 提交于
      for `~str`/`~[]`.
      
      Note that `~self` still remains, since I forgot to add support for
      `Box<self>` before the snapshot.
      
      How to update your code:
      
      * Instead of `~EXPR`, you should write `box EXPR`.
      
      * Instead of `~TYPE`, you should write `Box<Type>`.
      
      * Instead of `~PATTERN`, you should write `box PATTERN`.
      
      [breaking-change]
      090040bf
  14. 19 4月, 2014 1 次提交
  15. 16 4月, 2014 1 次提交
    • H
      Use the unsigned integer types for bitwise intrinsics. · 54ec04f1
      Huon Wilson 提交于
      Exposing ctpop, ctlz, cttz and bswap as taking signed i8/i16/... is just
      exposing the internal LLVM names pointlessly (LLVM doesn't have "signed
      integers" or "unsigned integers", it just has sized integer types
      with (un)signed *operations*).
      
      These operations are semantically working with raw bytes, which the
      unsigned types model better.
      54ec04f1
  16. 14 4月, 2014 1 次提交
  17. 21 3月, 2014 3 次提交
  18. 20 3月, 2014 1 次提交
  19. 15 3月, 2014 1 次提交
    • A
      extra: Put the nail in the coffin, delete libextra · 58e4ab2b
      Alex Crichton 提交于
      This commit shreds all remnants of libextra from the compiler and standard
      distribution. Two modules, c_vec/tempfile, were moved into libstd after some
      cleanup, and the other modules were moved to separate crates as seen fit.
      
      Closes #8784
      Closes #12413
      Closes #12576
      58e4ab2b
  20. 13 3月, 2014 1 次提交
    • P
      Update io iterators to produce IoResults · 9ba6bb5a
      Palmer Cox 提交于
      Most IO related functions return an IoResult so that the caller can handle failure
      in whatever way is appropriate. However, the `lines`, `bytes`, and `chars` iterators all
      supress errors. This means that code that needs to handle errors can't use any of these
      iterators. All three of these iterators were updated to produce IoResults.
      
      Fixes #12368
      9ba6bb5a
  21. 23 2月, 2014 1 次提交
  22. 21 2月, 2014 1 次提交
    • A
      Return a buffered stdin by default. · 7736985f
      Alex Crichton 提交于
      One of the most common ways to use the stdin stream is to read it line by line
      for a small program. In order to facilitate this common usage pattern, this
      commit changes the stdin() function to return a BufferedReader by default. A new
      `stdin_raw()` method was added to get access to the raw unbuffered stream.
      
      I have not changed the stdout or stderr methods because they are currently
      unable to flush in their destructor, but #12403 should have just fixed that.
      7736985f
  23. 15 2月, 2014 1 次提交
  24. 12 2月, 2014 1 次提交
  25. 21 1月, 2014 1 次提交
  26. 18 1月, 2014 1 次提交
    • A
      Tweak the interface of std::io · 295b46fc
      Alex Crichton 提交于
      * Reexport io::mem and io::buffered structs directly under io, make mem/buffered
        private modules
      * Remove with_mem_writer
      * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
      295b46fc
  27. 05 1月, 2014 1 次提交
  28. 04 1月, 2014 1 次提交
  29. 11 12月, 2013 1 次提交
    • K
      std::io: Add Buffer.lines(), change .bytes() api · 5a93d12e
      klutzy 提交于
      -   `Buffer.lines()` returns `LineIterator` which yields line using
          `.read_line()`.
      -   `Reader.bytes()` now takes `&mut self` instead of `self`.
      -   `Reader.read_until()` swallows `EndOfFile`. This also affects
          `.read_line()`.
      5a93d12e
  30. 27 11月, 2013 1 次提交
  31. 26 11月, 2013 1 次提交
  32. 12 11月, 2013 1 次提交
  33. 25 10月, 2013 2 次提交
  34. 24 10月, 2013 1 次提交
  35. 22 10月, 2013 1 次提交
  36. 01 10月, 2013 1 次提交