1. 25 4月, 2015 1 次提交
  2. 22 4月, 2015 1 次提交
    • A
      std: Remove deprecated/unstable num functionality · eeb94886
      Alex Crichton 提交于
      This commit removes all the old casting/generic traits from `std::num` that are
      no longer in use by the standard library. This additionally removes the old
      `strconv` module which has not seen much use in quite a long time. All generic
      functionality has been supplanted with traits in the `num` crate and the
      `strconv` module is supplanted with the [rust-strconv crate][rust-strconv].
      
      [rust-strconv]: https://github.com/lifthrasiir/rust-strconv
      
      This is a breaking change due to the removal of these deprecated crates, and the
      alternative crates are listed above.
      
      [breaking-change]
      eeb94886
  3. 01 4月, 2015 1 次提交
    • A
      std: Clean out #[deprecated] APIs · d4a2c941
      Alex Crichton 提交于
      This commit cleans out a large amount of deprecated APIs from the standard
      library and some of the facade crates as well, updating all users in the
      compiler and in tests as it goes along.
      d4a2c941
  4. 31 3月, 2015 1 次提交
  5. 27 3月, 2015 1 次提交
  6. 05 3月, 2015 1 次提交
  7. 04 3月, 2015 1 次提交
  8. 03 3月, 2015 1 次提交
    • F
      Accommodate arith-overflow in `rand` and `std::rand`. · 6189e99c
      Felix S. Klock II 提交于
      Regarding the `rand` changes: It is unfortunate that Wrapping(T) does
      not support the `+=` operator.  We may want to try to fix that before
      1.0 to make porting code like this palatable.
      
      Regarding `std::rand`, just arith-overflow in first example from
      `std::rand::random()` doc.
      6189e99c
  9. 06 2月, 2015 1 次提交
  10. 03 2月, 2015 2 次提交
  11. 29 1月, 2015 2 次提交
  12. 22 1月, 2015 1 次提交
  13. 06 1月, 2015 1 次提交
  14. 05 1月, 2015 2 次提交
  15. 04 1月, 2015 2 次提交
    • A
      Remove deprecated functionality · 7d8d06f8
      Alex Crichton 提交于
      This removes a large array of deprecated functionality, regardless of how
      recently it was deprecated. The purpose of this commit is to clean out the
      standard libraries and compiler for the upcoming alpha release.
      
      Some notable compiler changes were to enable warnings for all now-deprecated
      command line arguments (previously the deprecated versions were silently
      accepted) as well as removing deriving(Zero) entirely (the trait was removed).
      
      The distribution no longer contains the libtime or libregex_macros crates. Both
      of these have been deprecated for some time and are available externally.
      7d8d06f8
    • J
      sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs · 351409a6
      Jorge Aparicio 提交于
      351409a6
  16. 03 1月, 2015 1 次提交
    • A
      std: Stabilize the prelude module · 56290a00
      Alex Crichton 提交于
      This commit is an implementation of [RFC 503][rfc] which is a stabilization
      story for the prelude. Most of the RFC was directly applied, removing reexports.
      Some reexports are kept around, however:
      
      * `range` remains until range syntax has landed to reduce churn.
      * `Path` and `GenericPath` remain until path reform lands. This is done to
        prevent many imports of `GenericPath` which will soon be removed.
      * All `io` traits remain until I/O reform lands so imports can be rewritten all
        at once to `std::io::prelude::*`.
      
      This is a breaking change because many prelude reexports have been removed, and
      the RFC can be consulted for the exact list of removed reexports, as well as to
      find the locations of where to import them.
      
      [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
      [breaking-change]
      
      Closes #20068
      56290a00
  17. 02 1月, 2015 2 次提交
  18. 30 12月, 2014 1 次提交
    • A
      std: Stabilize the prelude module · c32d03f4
      Alex Crichton 提交于
      This commit is an implementation of [RFC 503][rfc] which is a stabilization
      story for the prelude. Most of the RFC was directly applied, removing reexports.
      Some reexports are kept around, however:
      
      * `range` remains until range syntax has landed to reduce churn.
      * `Path` and `GenericPath` remain until path reform lands. This is done to
        prevent many imports of `GenericPath` which will soon be removed.
      * All `io` traits remain until I/O reform lands so imports can be rewritten all
        at once to `std::io::prelude::*`.
      
      This is a breaking change because many prelude reexports have been removed, and
      the RFC can be consulted for the exact list of removed reexports, as well as to
      find the locations of where to import them.
      
      [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
      [breaking-change]
      
      Closes #20068
      c32d03f4
  19. 19 12月, 2014 1 次提交
  20. 11 12月, 2014 1 次提交
  21. 09 12月, 2014 1 次提交
    • N
      librustc: Make `Copy` opt-in. · 096a2860
      Niko Matsakis 提交于
      This change makes the compiler no longer infer whether types (structures
      and enumerations) implement the `Copy` trait (and thus are implicitly
      copyable). Rather, you must implement `Copy` yourself via `impl Copy for
      MyType {}`.
      
      A new warning has been added, `missing_copy_implementations`, to warn
      you if a non-generic public type has been added that could have
      implemented `Copy` but didn't.
      
      For convenience, you may *temporarily* opt out of this behavior by using
      `#![feature(opt_out_copy)]`. Note though that this feature gate will never be
      accepted and will be removed by the time that 1.0 is released, so you should
      transition your code away from using it.
      
      This breaks code like:
      
          #[deriving(Show)]
          struct Point2D {
              x: int,
              y: int,
          }
      
          fn main() {
              let mypoint = Point2D {
                  x: 1,
                  y: 1,
              };
              let otherpoint = mypoint;
              println!("{}{}", mypoint, otherpoint);
          }
      
      Change this code to:
      
          #[deriving(Show)]
          struct Point2D {
              x: int,
              y: int,
          }
      
          impl Copy for Point2D {}
      
          fn main() {
              let mypoint = Point2D {
                  x: 1,
                  y: 1,
              };
              let otherpoint = mypoint;
              println!("{}{}", mypoint, otherpoint);
          }
      
      This is the backwards-incompatible part of #13231.
      
      Part of RFC #3.
      
      [breaking-change]
      096a2860
  22. 07 12月, 2014 1 次提交
  23. 13 11月, 2014 1 次提交
  24. 26 10月, 2014 1 次提交
  25. 10 10月, 2014 1 次提交
  26. 30 9月, 2014 1 次提交