Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 14, 2015
  1. @aturon
Commits on Mar 31, 2015
  1. @alexcrichton

    std: Clean out #[deprecated] APIs

    alexcrichton authored
    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.
Commits on Mar 23, 2015
  1. @brson
Commits on Mar 1, 2015
  1. @GuillaumeGomez
Commits on Feb 18, 2015
  1. @alexcrichton
  2. @alexcrichton

    rollup merge of #22435: aturon/final-stab-thread

    alexcrichton authored
    Conflicts:
    	src/test/bench/rt-messaging-ping-pong.rs
    	src/test/bench/rt-parfib.rs
    	src/test/bench/task-perf-spawnalot.rs
Commits on Feb 17, 2015
  1. @aturon

    Fallout from stabilization

    aturon authored
Commits on Feb 16, 2015
  1. @nagisa

    Replace some uses of deprecated os functions

    nagisa authored
    This commit mostly replaces some of the uses of os::args with env::args.
Commits on Feb 13, 2015
  1. @nagisa
Commits on Feb 5, 2015
  1. @japaric
Commits on Feb 2, 2015
  1. @japaric

    `for x in xs.into_iter()` -> `for x in xs`

    japaric authored
    Also `for x in option.into_iter()` -> `if let Some(x) = option`
Commits on Jan 21, 2015
  1. @aturon
Commits on Jan 10, 2015
  1. @TeXitoi

    Improvement of shootout-binarytrees.rs

    TeXitoi authored
    Part of #18085
    
    Instead of using an Enum, we use a struct with Option<&Tree> as leaves. It allow
    to limit a lot of allocation.
    
    before:
    ```
    texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees-orig 20
    stretch tree of depth 21	 check: -1
    2097152	 trees of depth 4	 check: -2097152
    524288	 trees of depth 6	 check: -524288
    131072	 trees of depth 8	 check: -131072
    32768	 trees of depth 10	 check: -32768
    8192	 trees of depth 12	 check: -8192
    2048	 trees of depth 14	 check: -2048
    512	 trees of depth 16	 check: -512
    128	 trees of depth 18	 check: -128
    32	 trees of depth 20	 check: -32
    long lived tree of depth 20	 check: -1
    
    real	0m3.860s
    user	0m11.032s
    sys	0m3.572s
    ```
    after:
    ```
    texitoi@vaio:~/dev/benchmarksgame-rs$ time ./bin/binary-trees 20
    stretch tree of depth 21	 check: -1
    2097152	 trees of depth 4	 check: -2097152
    524288	 trees of depth 6	 check: -524288
    131072	 trees of depth 8	 check: -131072
    32768	 trees of depth 10	 check: -32768
    8192	 trees of depth 12	 check: -8192
    2048	 trees of depth 14	 check: -2048
    512	 trees of depth 16	 check: -512
    128	 trees of depth 18	 check: -128
    32	 trees of depth 20	 check: -32
    long lived tree of depth 20	 check: -1
    
    real	0m2.824s
    user	0m9.224s
    sys	0m1.428s
    ```
Commits on Jan 8, 2015
  1. @tshepang
Commits on Jan 6, 2015
  1. @aturon

    Fallout from stabilization

    aturon authored
Commits on Jan 2, 2015
  1. @alexcrichton
  2. @alexcrichton

    std: Second pass stabilization of sync

    alexcrichton authored
    This pass performs a second pass of stabilization through the `std::sync`
    module, avoiding modules/types that are being handled in other PRs (e.g.
    mutexes, rwlocks, condvars, and channels).
    
    The following items are now stable
    
    * `sync::atomic`
    * `sync::atomic::ATOMIC_BOOL_INIT` (was `INIT_ATOMIC_BOOL`)
    * `sync::atomic::ATOMIC_INT_INIT` (was `INIT_ATOMIC_INT`)
    * `sync::atomic::ATOMIC_UINT_INIT` (was `INIT_ATOMIC_UINT`)
    * `sync::Once`
    * `sync::ONCE_INIT`
    * `sync::Once::call_once` (was `doit`)
      * C == `pthread_once(..)`
      * Boost == `call_once(..)`
      * Windows == `InitOnceExecuteOnce`
    * `sync::Barrier`
    * `sync::Barrier::new`
    * `sync::Barrier::wait` (now returns a `bool`)
    * `sync::Semaphore::new`
    * `sync::Semaphore::acquire`
    * `sync::Semaphore::release`
    
    The following items remain unstable
    
    * `sync::SemaphoreGuard`
    * `sync::Semaphore::access` - it's unclear how this relates to the poisoning
                                  story of mutexes.
    * `sync::TaskPool` - the semantics of a failing task and whether a thread is
                         re-attached to a thread pool are somewhat unclear, and the
                         utility of this type in `sync` is question with respect to
                         the jobs of other primitives. This type will likely become
                         stable or move out of the standard library over time.
    * `sync::Future` - futures as-is have yet to be deeply re-evaluated with the
                       recent core changes to Rust's synchronization story, and will
                       likely become stable in the future but are unstable until
                       that time comes.
    
    [breaking-change]
Commits on Dec 14, 2014
  1. @nikomatsakis
Commits on Nov 18, 2014
  1. @bors

    auto merge of #19031 : nodakai/rust/libcore-pow-and-sq, r=bjz

    bors authored
    [breaking-change]
    
    Deprecates `core::num::pow` in favor of `Int::pow`.
  2. @nodakai

    libcore: add num::Int::pow() and deprecate num::pow().

    nodakai authored
    Signed-off-by: NODA, Kai <nodakai@gmail.com>
Commits on Nov 17, 2014
  1. @sfackler

    Switch to purely namespaced enums

    sfackler authored
    This breaks code that referred to variant names in the same namespace as
    their enum. Reexport the variants in the old location or alter code to
    refer to the new locations:
    
    ```
    pub enum Foo {
        A,
        B
    }
    
    fn main() {
        let a = A;
    }
    ```
    =>
    ```
    pub use self::Foo::{A, B};
    
    pub enum Foo {
        A,
        B
    }
    
    fn main() {
        let a = A;
    }
    ```
    or
    ```
    pub enum Foo {
        A,
        B
    }
    
    fn main() {
        let a = Foo::A;
    }
    ```
    
    [breaking-change]
Commits on Sep 16, 2014
  1. @aturon

    Fallout from renaming

    aturon authored
Commits on Jun 25, 2014
  1. @nikomatsakis @alexcrichton

    librustc: Remove the fallback to `int` from typechecking.

    nikomatsakis authored alexcrichton committed
    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]
Commits on Jun 17, 2014
  1. @bors

    auto merge of #14855 : TeXitoi/rust/relicense-shootout-binarytrees, r…

    bors authored
    …=brson
    
    Everyone agreed.
    
    Related to #14248, close #14720
    
    @brson OK?
Commits on Jun 12, 2014
  1. @TeXitoi

    Relicense shootout-binarytrees.rs

    TeXitoi authored
    Everyone agreed.
    
    Related to #14248, close #14720
Commits on Jun 11, 2014
  1. @alexcrichton

    sync: Move underneath libstd

    alexcrichton authored
    This commit is the final step in the libstd facade, #13851. The purpose of this
    commit is to move libsync underneath the standard library, behind the facade.
    This will allow core primitives like channels, queues, and atomics to all live
    in the same location.
    
    There were a few notable changes and a few breaking changes as part of this
    movement:
    
    * The `Vec` and `String` types are reexported at the top level of libcollections
    * The `unreachable!()` macro was copied to libcore
    * The `std::rt::thread` module was moved to librustrt, but it is still
      reexported at the same location.
    * The `std::comm` module was moved to libsync
    * The `sync::comm` module was moved under `sync::comm`, and renamed to `duplex`.
      It is now a private module with types/functions being reexported under
      `sync::comm`. This is a breaking change for any existing users of duplex
      streams.
    * All concurrent queues/deques were moved directly under libsync. They are also
      all marked with #![experimental] for now if they are public.
    * The `task_pool` and `future` modules no longer live in libsync, but rather
      live under `std::sync`. They will forever live at this location, but they may
      move to libsync if the `std::task` module moves as well.
    
    [breaking-change]
Commits on May 28, 2014
  1. @alexcrichton

    std: Remove format_strbuf!()

    alexcrichton authored
    This was only ever a transitionary macro.
Commits on May 25, 2014
  1. @richo

    core: rename strbuf::StrBuf to string::String

    richo authored
    [breaking-change]
Commits on May 22, 2014
  1. @pcwalton

    libcore: Remove all uses of `~str` from `libcore`.

    pcwalton authored
    [breaking-change]
Commits on May 14, 2014
  1. @pcwalton
Commits on May 8, 2014
  1. @kballard
Commits on Apr 10, 2014
  1. @huonw @alexcrichton

    Remove some internal ~[] from several libraries.

    huonw authored alexcrichton committed
    Some straggling instances of `~[]` across a few different libs. Also,
    remove some public ones from workcache.
Commits on Mar 23, 2014
  1. @thestinger

    iter: remove `to_owned_vec`

    thestinger authored
    This needs to be removed as part of removing `~[T]`. Partial type hints
    are now allowed, and will remove the need to add a version of this
    method for `Vec<T>`. For now, this involves a few workarounds for
    partial type hints not completely working.
Commits on Feb 15, 2014
  1. @alexcrichton

    extern mod => extern crate

    alexcrichton authored
    This was previously implemented, and it just needed a snapshot to go through
Commits on Feb 5, 2014
  1. @jeremyletang
Something went wrong with that request. Please try again.