Skip to content

Commit 96f3c9f

Browse files
author
JP-Ellis
committed
---
yaml --- r: 187905 b: refs/heads/tmp c: bbd060d h: refs/heads/master i: 187903: 4992852 v: v3
1 parent d05c930 commit 96f3c9f

Some content is hidden

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

58 files changed

+2553
-2937
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: fcd1c3699a95eeda609d275585987828d76f2600
37+
refs/heads/tmp: bbd060d85a8adb0f3df26cfb84629127a9b8561a
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/tmp/mk/crates.mk

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
unicode rustc_bitflags
5656
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint
57+
rustc_trans rustc_back rustc_llvm rustc_privacy
5858
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
5959
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6060
TOOLS := compiletest rustdoc rustc rustbook
@@ -70,21 +70,20 @@ DEPS_graphviz := std
7070
DEPS_syntax := std term serialize log fmt_macros arena libc
7171
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
7272
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
73-
rustc_trans rustc_privacy rustc_lint
73+
rustc_trans rustc_privacy
7474

7575
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7676
log syntax serialize rustc_llvm
7777
DEPS_rustc_typeck := rustc syntax
7878
DEPS_rustc_borrowck := rustc log graphviz syntax
7979
DEPS_rustc_resolve := rustc log syntax
8080
DEPS_rustc_privacy := rustc log syntax
81-
DEPS_rustc_lint := rustc log syntax
8281
DEPS_rustc := syntax flate arena serialize getopts rbml \
8382
log graphviz rustc_llvm rustc_back
8483
DEPS_rustc_llvm := native:rustllvm libc std
8584
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8685
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
87-
test rustc_lint
86+
test
8887
DEPS_rustc_bitflags := core
8988
DEPS_flate := std native:miniz
9089
DEPS_arena := std
@@ -129,13 +128,11 @@ DOC_CRATES := $(filter-out rustc, \
129128
$(filter-out rustc_resolve, \
130129
$(filter-out rustc_driver, \
131130
$(filter-out rustc_privacy, \
132-
$(filter-out rustc_lint, \
133131
$(filter-out log, \
134132
$(filter-out getopts, \
135-
$(filter-out syntax, $(CRATES))))))))))))
133+
$(filter-out syntax, $(CRATES)))))))))))
136134
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
137-
rustc_typeck rustc_driver syntax rustc_privacy \
138-
rustc_lint
135+
rustc_typeck rustc_driver syntax rustc_privacy
139136

140137
# This macro creates some simple definitions for each crate being built, just
141138
# some munging of all of the parameters above.

branches/tmp/mk/tests.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(eval $(call RUST_CRATE,coretest))
2121

2222
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
2323
TEST_DOC_CRATES = $(DOC_CRATES)
24-
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans rustc_lint,\
24+
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans,\
2525
$(HOST_CRATES))
2626
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
2727

branches/tmp/src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#![feature(std_misc)]
2121
#![feature(test)]
2222
#![feature(unicode)]
23+
#![feature(env)]
2324
#![feature(core)]
2425

2526
#![deny(warnings)]

branches/tmp/src/doc/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,9 +3765,9 @@ An example of creating and calling a closure:
37653765
```rust
37663766
let captured_var = 10;
37673767

3768-
let closure_no_args = || println!("captured_var={}", captured_var);
3768+
let closure_no_args = |&:| println!("captured_var={}", captured_var);
37693769

3770-
let closure_args = |arg: i32| -> i32 {
3770+
let closure_args = |&: arg: i32| -> i32 {
37713771
println!("captured_var={}, arg={}", captured_var, arg);
37723772
arg // Note lack of semicolon after 'arg'
37733773
};

branches/tmp/src/doc/trpl/installing-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ If you've got Rust installed, you can open up a shell, and type this:
7070
$ rustc --version
7171
```
7272

73-
You should see the version number, commit hash, commit date and build date:
73+
You should see some output that looks something like this:
7474

7575
```bash
76-
rustc 1.0.0-nightly (f11f3e7ba 2015-01-04) (built 2015-01-06)
76+
rustc 1.0.0-nightly (f11f3e7ba 2015-01-04 20:02:14 +0000)
7777
```
7878

7979
If you did, Rust has been installed successfully! Congrats!

branches/tmp/src/doc/trpl/plugins.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ extern crate rustc;
7171
use syntax::codemap::Span;
7272
use syntax::parse::token;
7373
use syntax::ast::{TokenTree, TtToken};
74-
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager};
75-
use syntax::ext::build::AstBuilder; // trait for expr_usize
74+
use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacExpr};
75+
use syntax::ext::build::AstBuilder; // trait for expr_uint
7676
use rustc::plugin::Registry;
7777
7878
fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
@@ -107,7 +107,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
107107
}
108108
}
109109
110-
MacEager::expr(cx.expr_usize(sp, total))
110+
MacExpr::new(cx.expr_uint(sp, total))
111111
}
112112
113113
#[plugin_registrar]
@@ -183,7 +183,7 @@ with
183183
[`syntax::print::pprust::*_to_string`](http://doc.rust-lang.org/syntax/print/pprust/index.html#functions).
184184

185185
The example above produced an integer literal using
186-
[`AstBuilder::expr_usize`](../syntax/ext/build/trait.AstBuilder.html#tymethod.expr_usize).
186+
[`AstBuilder::expr_uint`](../syntax/ext/build/trait.AstBuilder.html#tymethod.expr_uint).
187187
As an alternative to the `AstBuilder` trait, `libsyntax` provides a set of
188188
[quasiquote macros](../syntax/ext/quote/index.html). They are undocumented and
189189
very rough around the edges. However, the implementation may be a good

branches/tmp/src/libcollections/vec.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,8 @@ impl<T> Vec<T> {
433433
#[stable(feature = "rust1", since = "1.0.0")]
434434
pub fn as_mut_slice(&mut self) -> &mut [T] {
435435
unsafe {
436-
let ptr = *self.ptr;
437-
assume(!ptr.is_null());
438436
mem::transmute(RawSlice {
439-
data: ptr,
437+
data: *self.ptr,
440438
len: self.len,
441439
})
442440
}
@@ -460,7 +458,6 @@ impl<T> Vec<T> {
460458
pub fn into_iter(self) -> IntoIter<T> {
461459
unsafe {
462460
let ptr = *self.ptr;
463-
assume(!ptr.is_null());
464461
let cap = self.cap;
465462
let begin = ptr as *const T;
466463
let end = if mem::size_of::<T>() == 0 {

branches/tmp/src/libcore/iter.rs

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,10 +2874,10 @@ pub mod order {
28742874
use super::Iterator;
28752875

28762876
/// Compare `a` and `b` for equality using `Eq`
2877-
pub fn equals<A, T, S>(mut a: T, mut b: S) -> bool where
2877+
pub fn equals<A, L, R>(mut a: L, mut b: R) -> bool where
28782878
A: Eq,
2879-
T: Iterator<Item=A>,
2880-
S: Iterator<Item=A>,
2879+
L: Iterator<Item=A>,
2880+
R: Iterator<Item=A>,
28812881
{
28822882
loop {
28832883
match (a.next(), b.next()) {
@@ -2889,10 +2889,10 @@ pub mod order {
28892889
}
28902890

28912891
/// Order `a` and `b` lexicographically using `Ord`
2892-
pub fn cmp<A, T, S>(mut a: T, mut b: S) -> cmp::Ordering where
2892+
pub fn cmp<A, L, R>(mut a: L, mut b: R) -> cmp::Ordering where
28932893
A: Ord,
2894-
T: Iterator<Item=A>,
2895-
S: Iterator<Item=A>,
2894+
L: Iterator<Item=A>,
2895+
R: Iterator<Item=A>,
28962896
{
28972897
loop {
28982898
match (a.next(), b.next()) {
@@ -2908,10 +2908,8 @@ pub mod order {
29082908
}
29092909

29102910
/// Order `a` and `b` lexicographically using `PartialOrd`
2911-
pub fn partial_cmp<A, T, S>(mut a: T, mut b: S) -> Option<cmp::Ordering> where
2912-
A: PartialOrd,
2913-
T: Iterator<Item=A>,
2914-
S: Iterator<Item=A>,
2911+
pub fn partial_cmp<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> Option<cmp::Ordering> where
2912+
L::Item: PartialOrd<R::Item>
29152913
{
29162914
loop {
29172915
match (a.next(), b.next()) {
@@ -2927,10 +2925,8 @@ pub mod order {
29272925
}
29282926

29292927
/// Compare `a` and `b` for equality (Using partial equality, `PartialEq`)
2930-
pub fn eq<A, B, L, R>(mut a: L, mut b: R) -> bool where
2931-
A: PartialEq<B>,
2932-
L: Iterator<Item=A>,
2933-
R: Iterator<Item=B>,
2928+
pub fn eq<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> bool where
2929+
L::Item: PartialEq<R::Item>,
29342930
{
29352931
loop {
29362932
match (a.next(), b.next()) {
@@ -2942,10 +2938,8 @@ pub mod order {
29422938
}
29432939

29442940
/// Compare `a` and `b` for nonequality (Using partial equality, `PartialEq`)
2945-
pub fn ne<A, B, L, R>(mut a: L, mut b: R) -> bool where
2946-
A: PartialEq<B>,
2947-
L: Iterator<Item=A>,
2948-
R: Iterator<Item=B>,
2941+
pub fn ne<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> bool where
2942+
L::Item: PartialEq<R::Item>,
29492943
{
29502944
loop {
29512945
match (a.next(), b.next()) {
@@ -2957,10 +2951,8 @@ pub mod order {
29572951
}
29582952

29592953
/// Return `a` < `b` lexicographically (Using partial order, `PartialOrd`)
2960-
pub fn lt<A, T, S>(mut a: T, mut b: S) -> bool where
2961-
A: PartialOrd,
2962-
T: Iterator<Item=A>,
2963-
S: Iterator<Item=A>,
2954+
pub fn lt<R: Iterator, L: Iterator>(mut a: L, mut b: R) -> bool where
2955+
L::Item: PartialOrd<R::Item>,
29642956
{
29652957
loop {
29662958
match (a.next(), b.next()) {
@@ -2973,10 +2965,8 @@ pub mod order {
29732965
}
29742966

29752967
/// Return `a` <= `b` lexicographically (Using partial order, `PartialOrd`)
2976-
pub fn le<A, T, S>(mut a: T, mut b: S) -> bool where
2977-
A: PartialOrd,
2978-
T: Iterator<Item=A>,
2979-
S: Iterator<Item=A>,
2968+
pub fn le<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> bool where
2969+
L::Item: PartialOrd<R::Item>,
29802970
{
29812971
loop {
29822972
match (a.next(), b.next()) {
@@ -2989,10 +2979,8 @@ pub mod order {
29892979
}
29902980

29912981
/// Return `a` > `b` lexicographically (Using partial order, `PartialOrd`)
2992-
pub fn gt<A, T, S>(mut a: T, mut b: S) -> bool where
2993-
A: PartialOrd,
2994-
T: Iterator<Item=A>,
2995-
S: Iterator<Item=A>,
2982+
pub fn gt<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> bool where
2983+
L::Item: PartialOrd<R::Item>,
29962984
{
29972985
loop {
29982986
match (a.next(), b.next()) {
@@ -3005,10 +2993,8 @@ pub mod order {
30052993
}
30062994

30072995
/// Return `a` >= `b` lexicographically (Using partial order, `PartialOrd`)
3008-
pub fn ge<A, T, S>(mut a: T, mut b: S) -> bool where
3009-
A: PartialOrd,
3010-
T: Iterator<Item=A>,
3011-
S: Iterator<Item=A>,
2996+
pub fn ge<L: Iterator, R: Iterator>(mut a: L, mut b: R) -> bool where
2997+
L::Item: PartialOrd<R::Item>,
30122998
{
30132999
loop {
30143000
match (a.next(), b.next()) {

branches/tmp/src/libcore/slice.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ use cmp::{Ordering, PartialEq, PartialOrd, Eq, Ord};
4040
use cmp::Ordering::{Less, Equal, Greater};
4141
use cmp;
4242
use default::Default;
43-
use intrinsics::assume;
4443
use iter::*;
4544
use ops::{FnMut, self, Index};
4645
use ops::RangeFull;
@@ -138,7 +137,6 @@ impl<T> SliceExt for [T] {
138137
fn iter<'a>(&'a self) -> Iter<'a, T> {
139138
unsafe {
140139
let p = self.as_ptr();
141-
assume(!p.is_null());
142140
if mem::size_of::<T>() == 0 {
143141
Iter {ptr: p,
144142
end: (p as usize + self.len()) as *const T,
@@ -278,7 +276,6 @@ impl<T> SliceExt for [T] {
278276
fn iter_mut<'a>(&'a mut self) -> IterMut<'a, T> {
279277
unsafe {
280278
let p = self.as_mut_ptr();
281-
assume(!p.is_null());
282279
if mem::size_of::<T>() == 0 {
283280
IterMut {ptr: p,
284281
end: (p as usize + self.len()) as *mut T,

branches/tmp/src/liblog/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
#![feature(core)]
175175
#![feature(old_io)]
176176
#![feature(std_misc)]
177+
#![feature(env)]
177178

178179
use std::boxed;
179180
use std::cell::RefCell;

branches/tmp/src/librustc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
#![feature(int_uint)]
3232
#![feature(old_io)]
3333
#![feature(libc)]
34+
#![feature(env)]
3435
#![feature(old_path)]
3536
#![feature(quote)]
3637
#![feature(rustc_diagnostic_macros)]
3738
#![feature(rustc_private)]
3839
#![feature(unsafe_destructor)]
3940
#![feature(staged_api)]
4041
#![feature(std_misc)]
42+
#![feature(unicode)]
4143
#![feature(os)]
4244
#![cfg_attr(test, feature(test))]
4345

0 commit comments

Comments
 (0)