Skip to content

Commit eb88684

Browse files
committed
---
yaml --- r: 109215 b: refs/heads/dist-snap c: caf17fe h: refs/heads/master i: 109213: b30360b 109211: f6c7f7e 109207: 3faa014 109199: 7e81b45 109183: 997990b v: v3
1 parent cdbdf10 commit eb88684

File tree

243 files changed

+855
-831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+855
-831
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 3c4edff9b58eb7dd689779fdab6f980f0860dd98
9+
refs/heads/dist-snap: caf17fea06bdf3d1540aded41a161f04a8c5a2c9
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#[feature(phase)];
1313

1414
#[allow(non_camel_case_types)];
15+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
1516
#[deny(warnings)];
16-
#[allow(deprecated_owned_vector)];
1717

1818
extern crate test;
1919
extern crate getopts;

branches/dist-snap/src/doc/guide-unsafe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,10 +595,10 @@ Other features provided by lang items include:
595595
- stack unwinding and general failure; the `eh_personality`, `fail_`
596596
and `fail_bounds_checks` lang items.
597597
- the traits in `std::kinds` used to indicate types that satisfy
598-
various kinds; lang items `send`, `freeze` and `pod`.
598+
various kinds; lang items `send`, `share` and `pod`.
599599
- the marker types and variance indicators found in
600600
`std::kinds::markers`; lang items `covariant_type`,
601-
`contravariant_lifetime`, `no_freeze_bound`, etc.
601+
`contravariant_lifetime`, `no_share_bound`, etc.
602602

603603
Lang items are loaded lazily by the compiler; e.g. if one never uses
604604
`~` then there is no need to define functions for `exchange_malloc`

branches/dist-snap/src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ Supported traits for `deriving` are:
20332033

20342034
* Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`.
20352035
* Serialization: `Encodable`, `Decodable`. These require `serialize`.
2036-
* `Clone` and `DeepClone`, to perform (deep) copies.
2036+
* `Clone`, to create `T` from `&T` via a copy.
20372037
* `Hash`, to iterate over the bytes in a data type.
20382038
* `Rand`, to create a random instance of a data type.
20392039
* `Default`, to create an empty instance of a data type.

branches/dist-snap/src/doc/tutorial.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,10 @@ and may not be overridden:
20952095
Types are sendable
20962096
unless they contain managed boxes, managed closures, or references.
20972097
2098+
* `Share` - Types that are *threadsafe*
2099+
These are types that are safe to be used across several threads with access to
2100+
a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal mutable data.
2101+
20982102
* `Freeze` - Constant (immutable) types.
20992103
These are types that do not contain anything intrinsically mutable.
21002104
Intrinsically mutable values include `Cell` in the standard library.
@@ -2534,7 +2538,7 @@ enum ABC { A, B, C }
25342538
~~~
25352539

25362540
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
2537-
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2541+
`TotalOrd`, `Encodable` `Decodable`, `Clone`,
25382542
`Hash`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`.
25392543

25402544
# Crates and the module system

branches/dist-snap/src/etc/generate-deriving-span-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def write_file(name, string):
116116
}
117117

118118
for (trait, supers, errs) in [('Rand', [], 1),
119-
('Clone', [], 1), ('DeepClone', ['Clone'], 1),
119+
('Clone', [], 1),
120120
('Eq', [], 2), ('Ord', [], 8),
121121
('TotalEq', [], 1), ('TotalOrd', ['TotalEq'], 1),
122122
('Show', [], 1),

branches/dist-snap/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ syn keyword rustTrait Any AnyOwnExt AnyRefExt AnyMutRefExt
7272
syn keyword rustTrait Ascii AsciiCast OwnedAsciiCast AsciiStr IntoBytes
7373
syn keyword rustTrait ToCStr
7474
syn keyword rustTrait Char
75-
syn keyword rustTrait Clone DeepClone
75+
syn keyword rustTrait Clone
7676
syn keyword rustTrait Eq Ord TotalEq TotalOrd Ordering Equiv
7777
syn keyword rustEnumVariant Less Equal Greater
7878
syn keyword rustTrait Container Mutable Map MutableMap Set MutableSet

branches/dist-snap/src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
html_root_url = "http://static.rust-lang.org/doc/master")];
2525
#[allow(missing_doc)];
2626
#[feature(managed_boxes)];
27-
#[allow(deprecated_owned_vector)];
27+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2828

2929
extern crate collections;
3030

branches/dist-snap/src/libcollections/hashmap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ mod test_map {
15751575
use super::HashMap;
15761576
use std::iter::{Iterator,range_inclusive,range_step_inclusive};
15771577
use std::local_data;
1578-
use std::vec_ng;
1578+
use std::vec;
15791579

15801580
#[test]
15811581
fn test_create_capacity_zero() {
@@ -1599,7 +1599,7 @@ mod test_map {
15991599
assert_eq!(*m.find(&2).unwrap(), 4);
16001600
}
16011601

1602-
local_data_key!(drop_vector: vec_ng::Vec<int>)
1602+
local_data_key!(drop_vector: vec::Vec<int>)
16031603

16041604
#[deriving(Hash, Eq)]
16051605
struct Dropable {
@@ -1625,7 +1625,7 @@ mod test_map {
16251625

16261626
#[test]
16271627
fn test_drops() {
1628-
local_data::set(drop_vector, vec_ng::Vec::from_elem(200, 0));
1628+
local_data::set(drop_vector, vec::Vec::from_elem(200, 0));
16291629

16301630
{
16311631
let mut m = HashMap::new();

branches/dist-snap/src/libcollections/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
html_root_url = "http://static.rust-lang.org/doc/master")];
2222

2323
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
24-
25-
// NOTE remove the following two attributes after the next snapshot.
26-
#[allow(unrecognized_lint)];
27-
#[allow(default_type_param_usage)];
28-
#[allow(deprecated_owned_vector)];
24+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2925

3026
extern crate rand;
3127

branches/dist-snap/src/libflate/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> CVec<u8> {
9494

9595
#[cfg(test)]
9696
mod tests {
97-
#[allow(deprecated_owned_vector)];
9897
extern crate rand;
9998

10099
use super::{inflate_bytes, deflate_bytes};

branches/dist-snap/src/libgetopts/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,9 @@
8383
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
8484
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
8585
html_root_url = "http://static.rust-lang.org/doc/master")];
86-
#[deny(missing_doc)];
87-
#[allow(deprecated_owned_vector)];
88-
8986
#[feature(globs, phase)];
87+
#[deny(missing_doc)];
88+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
9089

9190
#[cfg(test)] #[phase(syntax, link)] extern crate log;
9291

branches/dist-snap/src/libglob/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
3131
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
3232
html_root_url = "http://static.rust-lang.org/doc/master")];
33-
#[allow(deprecated_owned_vector)];
3433

3534
use std::cell::Cell;
3635
use std::{cmp, os, path};

branches/dist-snap/src/libgreen/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
// NB this does *not* include globs, please keep it that way.
175175
#[feature(macro_rules, phase)];
176176
#[allow(visible_private_types)];
177-
#[allow(deprecated_owned_vector)];
177+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
178178

179179
#[cfg(test)] #[phase(syntax, link)] extern crate log;
180180
extern crate rand;

branches/dist-snap/src/liblog/directive.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
use std::cmp;
12-
use std::vec_ng::Vec;
1312

1413
#[deriving(Show, Clone)]
1514
pub struct LogDirective {

branches/dist-snap/src/liblog/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ use std::local_data;
126126
use std::os;
127127
use std::rt;
128128
use std::slice;
129-
use std::vec_ng::Vec;
130129

131130
use sync::one::{Once, ONCE_INIT};
132131

branches/dist-snap/src/libnative/io/file_unix.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use std::libc;
1919
use std::mem;
2020
use std::rt::rtio;
2121
use std::slice;
22-
use std::vec_ng::Vec;
2322

2423
use io::{IoResult, retry, keep_going};
2524

branches/dist-snap/src/libnative/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
html_root_url = "http://static.rust-lang.org/doc/master")];
5151
#[deny(unused_result, unused_must_use)];
5252
#[allow(non_camel_case_types)];
53-
#[allow(deprecated_owned_vector)];
53+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
5454

5555
// NB this crate explicitly does *not* allow glob imports, please seriously
5656
// consider whether they're needed before adding that feature here (the

branches/dist-snap/src/libnum/bigint.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ use rand::Rng;
2828
use std::str;
2929
use std::uint;
3030
use std::{i64, u64};
31-
use std::vec_ng;
32-
use std::vec_ng::Vec;
31+
use std::vec;
3332

3433
/**
3534
A `BigDigit` is a `BigUint`'s composing element.
@@ -753,7 +752,7 @@ impl BigUint {
753752
fn shl_unit(&self, n_unit: uint) -> BigUint {
754753
if n_unit == 0 || self.is_zero() { return (*self).clone(); }
755754

756-
return BigUint::new(vec_ng::append(Vec::from_elem(n_unit, ZERO_BIG_DIGIT),
755+
return BigUint::new(vec::append(Vec::from_elem(n_unit, ZERO_BIG_DIGIT),
757756
self.data.as_slice()));
758757
}
759758

@@ -1461,7 +1460,6 @@ mod biguint_tests {
14611460
use std::num::CheckedDiv;
14621461
use rand::{task_rng};
14631462
use std::u64;
1464-
use std::vec_ng::Vec;
14651463
14661464
#[test]
14671465
fn test_from_slice() {
@@ -2195,7 +2193,6 @@ mod bigint_tests {
21952193
use std::num::{ToPrimitive, FromPrimitive};
21962194
use rand::{task_rng};
21972195
use std::u64;
2198-
use std::vec_ng::Vec;
21992196
22002197
#[test]
22012198
fn test_from_biguint() {

branches/dist-snap/src/libnum/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1818
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
1919
html_root_url = "http://static.rust-lang.org/doc/master")];
20-
#[allow(deprecated_owned_vector)];
2120

2221
extern crate rand;
2322

branches/dist-snap/src/libnum/rational.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use std::cmp;
1616
use std::fmt;
1717
use std::from_str::FromStr;
1818
use std::num::{Zero,One,ToStrRadix,FromStrRadix,Round};
19-
use std::vec_ng::Vec;
2019
use bigint::{BigInt, BigUint, Sign, Plus, Minus};
2120

2221
/// Represents the ratio between 2 numbers.

branches/dist-snap/src/librand/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ println!("{:?}", tuple_ptr)
7171
html_root_url = "http://static.rust-lang.org/doc/master")];
7272

7373
#[feature(macro_rules, managed_boxes, phase)];
74-
#[allow(deprecated_owned_vector)];
74+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
7575

7676
#[cfg(test)]
7777
#[phase(syntax, link)] extern crate log;

branches/dist-snap/src/librustc/back/archive.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use metadata::filesearch;
1616
use lib::llvm::{ArchiveRef, llvm};
1717

1818
use std::cast;
19-
use std::vec_ng::Vec;
2019
use std::io;
2120
use std::io::{fs, TempDir};
2221
use std::libc;

branches/dist-snap/src/librustc/back/link.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use std::ptr;
3333
use std::str;
3434
use std::io;
3535
use std::io::{fs, TempDir, Process};
36-
use std::vec_ng::Vec;
3736
use flate;
3837
use serialize::hex::ToHex;
3938
use syntax::abi;
@@ -105,7 +104,6 @@ pub mod write {
105104
use std::io::Process;
106105
use std::libc::{c_uint, c_int};
107106
use std::str;
108-
use std::vec_ng::Vec;
109107

110108
// On android, we by default compile for armv7 processors. This enables
111109
// things like double word CAS instructions (rather than emulating them)

branches/dist-snap/src/librustc/back/mips.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use back::target_strs;
1212
use driver::session::sess_os_to_meta_os;
1313
use metadata::loader::meta_section_name;
14-
use std::vec_ng::Vec;
1514
use syntax::abi;
1615

1716
pub fn get_target_strs(target_triple: ~str, target_os: abi::Os) -> target_strs::t {

branches/dist-snap/src/librustc/back/rpath.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use metadata::filesearch;
1515

1616
use collections::HashSet;
1717
use std::{os, slice};
18-
use std::vec_ng::Vec;
1918
use syntax::abi;
2019

2120
fn not_win32(os: abi::Os) -> bool {

branches/dist-snap/src/librustc/back/target_strs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#[allow(non_camel_case_types)];
1212

13-
use std::vec_ng::Vec;
14-
1513
pub struct t {
1614
module_asm: ~str,
1715
meta_sect_name: ~str,

branches/dist-snap/src/librustc/driver/driver.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ use std::io::fs;
3737
use std::io::MemReader;
3838
use std::mem::drop;
3939
use std::os;
40-
use std::vec_ng::Vec;
41-
use std::vec_ng;
40+
use std::vec;
4241
use getopts::{optopt, optmulti, optflag, optflagopt};
4342
use getopts;
4443
use syntax::ast;
@@ -138,7 +137,7 @@ pub fn build_configuration(sess: &Session) -> ast::CrateConfig {
138137
} else {
139138
InternedString::new("nogc")
140139
});
141-
return vec_ng::append(user_cfg.move_iter().collect(),
140+
return vec::append(user_cfg.move_iter().collect(),
142141
default_cfg.as_slice());
143142
}
144143

@@ -835,7 +834,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> session::Options {
835834

836835
let level_short = level_name.slice_chars(0, 1);
837836
let level_short = level_short.to_ascii().to_upper().into_str();
838-
let flags = vec_ng::append(matches.opt_strs(level_short)
837+
let flags = vec::append(matches.opt_strs(level_short)
839838
.move_iter()
840839
.collect(),
841840
matches.opt_strs(level_name));

branches/dist-snap/src/librustc/driver/session.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use syntax::{abi, ast, codemap};
2828
use syntax;
2929

3030
use std::cell::{Cell, RefCell};
31-
use std::vec_ng::Vec;
3231
use collections::HashSet;
3332

3433
pub struct Config {
@@ -407,7 +406,7 @@ macro_rules! cgoptions(
407406
}
408407
}
409408

410-
fn parse_list(slot: &mut ::std::vec_ng::Vec<~str>, v: Option<&str>)
409+
fn parse_list(slot: &mut Vec<~str>, v: Option<&str>)
411410
-> bool {
412411
match v {
413412
Some(s) => {

branches/dist-snap/src/librustc/front/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::vec_ng::Vec;
1211
use syntax::fold::Folder;
1312
use syntax::{ast, fold, attr};
1413
use syntax::codemap;

branches/dist-snap/src/librustc/front/feature_gate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ use syntax::parse::token;
3131
use driver::session::Session;
3232

3333
use std::cell::Cell;
34-
use std::vec_ng::Vec;
3534

3635
/// This is a list of all known features since the beginning of time. This list
3736
/// can never shrink, it may only be expanded (in order to prevent old programs

branches/dist-snap/src/librustc/front/std_inject.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
use driver::session::Session;
1313

14-
use std::vec_ng::Vec;
15-
use std::vec_ng;
14+
use std::vec;
1615
use syntax::ast;
1716
use syntax::attr;
1817
use syntax::codemap::DUMMY_SP;
@@ -182,7 +181,7 @@ impl<'a> fold::Folder for PreludeInjector<'a> {
182181
span: DUMMY_SP,
183182
};
184183

185-
let vis = vec_ng::append(vec!(vi2), module.view_items.as_slice());
184+
let vis = vec::append(vec!(vi2), module.view_items.as_slice());
186185

187186
// FIXME #2543: Bad copy.
188187
let new_module = ast::Mod {

0 commit comments

Comments
 (0)