Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mozilla/rust
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpherrinm committed Feb 8, 2013
2 parents 64fedfb + 3764cfb commit 46df798
Show file tree
Hide file tree
Showing 234 changed files with 2,999 additions and 4,148 deletions.
6 changes: 6 additions & 0 deletions RELEASES.txt
@@ -1,3 +1,9 @@
Version 0.6 (?)
---------------------------

* Libraries
* `core::send_map` renamed to `core::hashmap`

Version 0.5 (December 2012)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -515,7 +515,7 @@ then
| cut -d ' ' -f 2)

case $CFG_CLANG_VERSION in
(3.0svn | 3.0 | 3.1* | 3.2* | 4.0* | 4.1*)
(3.0svn | 3.0 | 3.1* | 3.2* | 4.0* | 4.1* | 4.2*)
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
CFG_C_COMPILER="clang"
;;
Expand Down
10 changes: 6 additions & 4 deletions mk/docs.mk
Expand Up @@ -45,7 +45,7 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
--from=markdown --to=html \
--css=rust.css \
--css=manual.css \
--include-before-body=doc/version_info.html \
--include-before-body=doc/version_info.html \
--output=$@
endif

Expand All @@ -66,6 +66,7 @@ doc/rust.tex: rust.md doc/version.md
"$(CFG_PANDOC)" \
--standalone --toc \
--number-sections \
--include-before-body=doc/version.md \
--from=markdown --to=latex \
--output=$@

Expand Down Expand Up @@ -199,16 +200,17 @@ ifdef CFG_DISABLE_DOCS
endif


doc/version.md: $(MKFILE_DEPS) rust.md
doc/version.md: $(MKFILE_DEPS) $(wildcard $(S)doc/*.*)
@$(call E, version-stamp: $@)
$(Q)echo "$(CFG_VERSION)" >$@

doc/version_info.html: version_info.html.template
doc/version_info.html: version_info.html.template $(MKFILE_DEPS) \
$(wildcard $(S)doc/*.*)
@$(call E, version-info: $@)
sed -e "s/VERSION/$(CFG_RELEASE)/; s/SHORT_HASH/$(shell echo \
$(CFG_VER_HASH) | head -c 8)/;\
s/STAMP/$(CFG_VER_HASH)/;" $< >$@

GENERATED += doc/version.md
GENERATED += doc/version.md doc/version_info.html

docs: $(DOCS)
15 changes: 8 additions & 7 deletions src/compiletest/compiletest.rc
Expand Up @@ -159,7 +159,7 @@ pub fn test_opts(config: config) -> test::TestOpts {
}
}

pub fn make_tests(config: config) -> ~[test::TestDesc] {
pub fn make_tests(config: config) -> ~[test::TestDescAndFn] {
debug!("making tests from %s",
config.src_base.to_str());
let mut tests = ~[];
Expand Down Expand Up @@ -196,13 +196,14 @@ pub fn is_test(config: config, testfile: &Path) -> bool {
return valid;
}

pub fn make_test(config: config, testfile: &Path) ->
test::TestDesc {
test::TestDesc {
name: make_test_name(config, testfile),
pub fn make_test(config: config, testfile: &Path) -> test::TestDescAndFn {
test::TestDescAndFn {
desc: test::TestDesc {
name: make_test_name(config, testfile),
ignore: header::is_test_ignored(config, testfile),
should_fail: false
},
testfn: make_test_closure(config, testfile),
ignore: header::is_test_ignored(config, testfile),
should_fail: false
}
}

Expand Down
18 changes: 9 additions & 9 deletions src/libcargo/cargo.rc
Expand Up @@ -731,7 +731,7 @@ pub fn configure(opts: Options) -> Cargo {
need_dir(&c.bindir);

for sources.each_key_ref |&k| {
let mut s = sources.get(k);
let mut s = sources.get(&k);
load_source_packages(&c, s);
sources.insert(k, s);
}
Expand Down Expand Up @@ -981,7 +981,7 @@ pub fn install_named(c: &mut Cargo, wd: &Path, name: ~str) {

pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,
uuid: ~str) {
match c.sources.find(src) {
match c.sources.find(&src) {
Some(s) => {
for s.packages.each |p| {
if p.uuid == uuid {
Expand All @@ -997,7 +997,7 @@ pub fn install_uuid_specific(c: &mut Cargo, wd: &Path, src: ~str,

pub fn install_named_specific(c: &mut Cargo, wd: &Path, src: ~str,
name: ~str) {
match c.sources.find(src) {
match c.sources.find(&src) {
Some(s) => {
for s.packages.each |p| {
if p.name == name {
Expand Down Expand Up @@ -1064,7 +1064,7 @@ pub fn cmd_uninstall(c: &Cargo) {
}

pub fn install_query(c: &mut Cargo, wd: &Path, target: ~str) {
match c.dep_cache.find(target) {
match c.dep_cache.find(&target) {
Some(inst) => {
if inst {
return;
Expand Down Expand Up @@ -1156,7 +1156,7 @@ pub fn cmd_install(c: &mut Cargo) {

pub fn sync(c: &Cargo) {
for c.sources.each_key_ref |&k| {
let mut s = c.sources.get(k);
let mut s = c.sources.get(&k);
sync_one(c, s);
c.sources.insert(k, s);
}
Expand Down Expand Up @@ -1558,7 +1558,7 @@ pub fn cmd_list(c: &Cargo) {
if !valid_pkg_name(*name) {
error(fmt!("'%s' is an invalid source name", *name));
} else {
match c.sources.find(*name) {
match c.sources.find(name) {
Some(source) => {
print_source(source);
}
Expand Down Expand Up @@ -1754,7 +1754,7 @@ pub fn cmd_sources(c: &Cargo) {
return;
}

match c.sources.find(name) {
match c.sources.find(&name) {
Some(source) => {
let old = copy source.url;
let method = assume_source_method(url);
Expand Down Expand Up @@ -1785,7 +1785,7 @@ pub fn cmd_sources(c: &Cargo) {
return;
}

match c.sources.find(name) {
match c.sources.find(&name) {
Some(source) => {
let old = copy source.method;

Expand Down Expand Up @@ -1823,7 +1823,7 @@ pub fn cmd_sources(c: &Cargo) {
return;
}

match c.sources.find(name) {
match c.sources.find(&name) {
Some(source) => {
c.sources.remove(&name);
c.sources.insert(newn, source);
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/at_vec.rs
Expand Up @@ -10,10 +10,6 @@

//! Managed vectors

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use cast::transmute;
use kinds::Copy;
use iter;
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/bool.rs
Expand Up @@ -9,10 +9,6 @@
// except according to those terms.


// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

//! Boolean logic

use bool;
Expand Down
3 changes: 0 additions & 3 deletions src/libcore/cast.rs
Expand Up @@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! Unsafe operations
#[forbid(deprecated_mode)]

#[abi = "rust-intrinsic"]
extern mod rusti {
fn forget<T>(-x: T);
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/char.rs
Expand Up @@ -10,10 +10,6 @@

//! Utilities for manipulating the char type

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use char;
use cmp::Eq;
use option::{None, Option, Some};
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/cleanup.rs
Expand Up @@ -10,10 +10,6 @@

#[doc(hidden)];

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use libc::{c_char, c_void, intptr_t, uintptr_t};
use ptr::{mut_null, null, to_unsafe_ptr};
use repr::BoxRepr;
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/cmp.rs
Expand Up @@ -20,10 +20,6 @@ and `Eq` to overload the `==` and `!=` operators.
*/

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

/**
* Trait for values that can be compared for equality
* and inequality.
Expand Down
3 changes: 0 additions & 3 deletions src/libcore/container.rs
Expand Up @@ -10,9 +10,6 @@

//! Container traits

#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use option::Option;

pub trait Container {
Expand Down
2 changes: 0 additions & 2 deletions src/libcore/core.rc
Expand Up @@ -48,8 +48,6 @@ Implicitly, all crates behave as if they included the following prologue:
// Don't link to core. We are core.
#[no_core];

#[warn(deprecated_mode)];
#[warn(deprecated_pattern)];
#[warn(vecs_implicitly_copyable)];
#[deny(non_camel_case_types)];
#[allow(deprecated_self)];
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/dlist.rs
Expand Up @@ -18,10 +18,6 @@ Do not use ==, !=, <, etc on doubly-linked lists -- it may not terminate.
*/

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use kinds::Copy;
use managed;
use option::{None, Option, Some};
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/dvec.rs
Expand Up @@ -19,10 +19,6 @@ Note that recursive use is not permitted.
*/

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use cast;
use cast::reinterpret_cast;
use prelude::*;
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/either.rs
Expand Up @@ -8,10 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

//! A type that represents one of two alternatives

use cmp::Eq;
Expand Down
10 changes: 0 additions & 10 deletions src/libcore/extfmt.rs
Expand Up @@ -51,10 +51,6 @@
//! * s - str (any flavor)
//! * ? - arbitrary type (does not use the to_str trait)

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

// Transitional
#[allow(structural_records)]; // Macros -- needs a snapshot

Expand Down Expand Up @@ -499,12 +495,6 @@ pub mod rt {

pub enum Ty { TyDefault, TyBits, TyHexUpper, TyHexLower, TyOctal, }

#[cfg(stage0)]
pub type Conv = {flags: u32, width: Count, precision: Count, ty: Ty};

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub struct Conv {
flags: u32,
width: Count,
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/flate.rs
Expand Up @@ -14,10 +14,6 @@ Simple compression
*/

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use libc;
use libc::{c_void, size_t, c_int};
use ptr;
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/from_str.rs
Expand Up @@ -10,10 +10,6 @@

//! The trait for types that can be created from strings

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use option::Option;

pub trait FromStr {
Expand Down
3 changes: 0 additions & 3 deletions src/libcore/gc.rs
Expand Up @@ -35,9 +35,6 @@ with destructors.
*/

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
// Transitional
#[allow(structural_records)];

Expand Down
4 changes: 0 additions & 4 deletions src/libcore/hash.rs
Expand Up @@ -8,10 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

/*!
* Implementation of SipHash 2-4
*
Expand Down
11 changes: 2 additions & 9 deletions src/libcore/hashmap.rs
Expand Up @@ -10,10 +10,6 @@

//! Sendable hash maps.

// NB: transitionary, de-mode-ing.
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];

use container::{Container, Mutable, Map, Set};
use cmp::Eq;
use hash::Hash;
Expand Down Expand Up @@ -49,9 +45,8 @@ pub mod linear {
buckets: ~[Option<Bucket<K, V>>],
}

// FIXME(#3148) -- we could rewrite FoundEntry
// to have type Option<&Bucket<K, V>> which would be nifty
// However, that won't work until #3148 is fixed
// We could rewrite FoundEntry to have type Option<&Bucket<K, V>>
// which would be nifty
enum SearchResult {
FoundEntry(uint), FoundHole(uint), TableFull
}
Expand Down Expand Up @@ -296,8 +291,6 @@ pub mod linear {
FoundEntry(idx) => {
match self.buckets[idx] {
Some(ref bkt) => {
// FIXME(#3148)---should be inferred
let bkt: &self/Bucket<K, V> = bkt;
Some(&bkt.value)
}
None => {
Expand Down

0 comments on commit 46df798

Please sign in to comment.