Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 18, 2015
  1. @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 Jan 30, 2015
  1. @alexcrichton

    std: Stabilize FromStr and parse

    alexcrichton authored
    This commits adds an associated type to the `FromStr` trait representing an
    error payload for parses which do not succeed. The previous return value,
    `Option<Self>` did not allow for this form of payload. After the associated type
    was added, the following attributes were applied:
    
    * `FromStr` is now stable
    * `FromStr::Err` is now stable
    * `FromStr::from_str` is now stable
    * `StrExt::parse` is now stable
    * `FromStr for bool` is now stable
    * `FromStr for $float` is now stable
    * `FromStr for $integral` is now stable
    * Errors returned from stable `FromStr` implementations are stable
    * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`)
    
    Closes #15138
Commits on Jan 10, 2015
  1. @TeXitoi

    fix shootout-threadring.rs

    TeXitoi authored
    Without joining the threads, the program can finish before the end of the trip
    of the token.
Commits on Jan 8, 2015
  1. @tshepang
Commits on Jan 6, 2015
  1. @aturon

    Fallout from stabilization

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

    Remove deprecated functionality

    alexcrichton authored
    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.
Commits on Jan 2, 2015
  1. @alexcrichton
  2. @alexcrichton

    std: Stabilize the prelude module

    alexcrichton authored
    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
Commits on Dec 14, 2014
  1. @nikomatsakis
Commits on Oct 1, 2014
  1. @aturon

    Remove all use of librustuv

    aturon authored
Commits on Jul 4, 2014
  1. @TeXitoi

    Relicense shootout-threadring.rs

    TeXitoi authored
    Everyone agreed.
    
    Related to #14248, close #15328
Commits on Jun 9, 2014
  1. @kmcallister

    Use phase(plugin) in tests

    kmcallister authored
Commits on May 22, 2014
  1. @pcwalton

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

    pcwalton authored
    [breaking-change]
Commits on May 8, 2014
  1. @kballard
Commits on Apr 21, 2014
  1. @TeXitoi

    shootout-threadring rewrite

    TeXitoi authored
    * simplify the code
    * remove trace to satisfy official shootout test
    * use libgreen to improve performances
Commits on Apr 19, 2014
  1. @richo @brson

    Replace all ~"" with "".to_owned()

    richo authored brson committed
Commits on Apr 8, 2014
  1. @JIghtuse @alexcrichton

    Improve searching for XXX in tidy script (#3303)

    JIghtuse authored alexcrichton committed
    Few places where previous version of tidy script cannot find XXX:
    * inside one-line comment preceding by a few spaces;
    * inside multiline comments (now it finds it if multiline comment starts
    on the same line with XXX).
    
    Change occurences of XXX found by new tidy script.
Commits on Mar 21, 2014
  1. @pcwalton @huonw

    test: Make manual changes to deal with the fallout from removal of

    pcwalton authored huonw committed
    `~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
  2. @pcwalton @huonw

    test: Automatically remove all `~[T]` from tests.

    pcwalton authored huonw committed
Commits on Mar 16, 2014
  1. @alexcrichton

    log: Introduce liblog, the old std::logging

    alexcrichton authored
    This commit moves all logging out of the standard library into an external
    crate. This crate is the new crate which is responsible for all logging macros
    and logging implementation. A few reasons for this change are:
    
    * The crate map has always been a bit of a code smell among rust programs. It
      has difficulty being loaded on almost all platforms, and it's used almost
      exclusively for logging and only logging. Removing the crate map is one of the
      end goals of this movement.
    
    * The compiler has a fair bit of special support for logging. It has the
      __log_level() expression as well as generating a global word per module
      specifying the log level. This is unfairly favoring the built-in logging
      system, and is much better done purely in libraries instead of the compiler
      itself.
    
    * Initialization of logging is much easier to do if there is no reliance on a
      magical crate map being available to set module log levels.
    
    * If the logging library can be written outside of the standard library, there's
      no reason that it shouldn't be. It's likely that we're not going to build the
      highest quality logging library of all time, so third-party libraries should
      be able to provide just as high-quality logging systems as the default one
      provided in the rust distribution.
    
    With a migration such as this, the change does not come for free. There are some
    subtle changes in the behavior of liblog vs the previous logging macros:
    
    * The core change of this migration is that there is no longer a physical
      log-level per module. This concept is still emulated (it is quite useful), but
      there is now only a global log level, not a local one. This global log level
      is a reflection of the maximum of all log levels specified. The previously
      generated logging code looked like:
    
        if specified_level <= __module_log_level() {
            println!(...)
        }
    
      The newly generated code looks like:
    
        if specified_level <= ::log::LOG_LEVEL {
            if ::log::module_enabled(module_path!()) {
                println!(...)
            }
        }
    
      Notably, the first layer of checking is still intended to be "super fast" in
      that it's just a load of a global word and a compare. The second layer of
      checking is executed to determine if the current module does indeed have
      logging turned on.
    
      This means that if any module has a debug log level turned on, all modules
      with debug log levels get a little bit slower (they all do more expensive
      dynamic checks to determine if they're turned on or not).
    
      Semantically, this migration brings no change in this respect, but
      runtime-wise, this will have a perf impact on some code.
    
    * A `RUST_LOG=::help` directive will no longer print out a list of all modules
      that can be logged. This is because the crate map will no longer specify the
      log levels of all modules, so the list of modules is not known. Additionally,
      warnings can no longer be provided if a malformed logging directive was
      supplied.
    
    The new "hello world" for logging looks like:
    
        #[phase(syntax, link)]
        extern crate log;
    
        fn main() {
            debug!("Hello, world!");
        }
Commits on Mar 13, 2014
  1. @alexcrichton

    std: Rename Chan/Port types and constructor

    alexcrichton authored
    * Chan<T> => Sender<T>
    * Port<T> => Receiver<T>
    * Chan::new() => channel()
    * constructor returns (Sender, Receiver) instead of (Receiver, Sender)
    * local variables named `port` renamed to `rx`
    * local variables named `chan` renamed to `tx`
    
    Closes #11765
Commits on Feb 25, 2014
  1. @bjz @alexcrichton

    Remove std::from_str::FromStr from the prelude

    bjz authored alexcrichton committed
Commits on Jan 29, 2014
  1. @bytbox

    Remove do keyword from test/

    bytbox authored
Commits on Jan 21, 2014
  1. @huonw

    Remove unnecessary parentheses.

    huonw authored
Commits on Dec 17, 2013
  1. @alexcrichton
Commits on Oct 22, 2013
  1. @alexcrichton

    Drop the '2' suffix from logging macros

    alexcrichton authored
    Who doesn't like a massive renaming?
Commits on Sep 27, 2013
  1. @alexcrichton
Commits on Aug 30, 2013
  1. @cmr

    Revert "src/test/bench: restructure"

    cmr authored
    This reverts commit 14cdc26.
Commits on Aug 28, 2013
  1. @cmr

    src/test/bench: restructure

    cmr authored
Commits on Aug 5, 2013
  1. @Kimundi

    Updated std::Option, std::Either and std::Result

    Kimundi authored
    - Made naming schemes consistent between Option, Result and Either
    - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None)
    - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
Commits on Jul 24, 2013
  1. @poiru @thestinger
Commits on Jul 20, 2013
  1. @bblum
Something went wrong with that request. Please try again.