Skip to content

Commit d611af8

Browse files
committed
---
yaml --- r: 107631 b: refs/heads/dist-snap c: 5aa31c4 h: refs/heads/master i: 107629: 95bff6a 107627: 9f7f897 107623: 327e28f 107615: a90d962 v: v3
1 parent 83b8042 commit d611af8

File tree

99 files changed

+1434
-2724
lines changed

Some content is hidden

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

99 files changed

+1434
-2724
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: a1d9d9e6d2ca79ac0b157170a76e300acfdcf143
9+
refs/heads/dist-snap: 5aa31c43a0ab50208e58680cf5f29eec8ff76357
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/Makefile.in

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ endif
124124
ifdef TRACE
125125
CFG_RUSTC_FLAGS += -Z trace
126126
endif
127-
ifdef DISABLE_RPATH
128-
# NOTE: make this CFG_RUSTC_FLAGS after stage0 snapshot
129-
RUSTFLAGS_STAGE1 += --no-rpath
130-
RUSTFLAGS_STAGE2 += --no-rpath
131-
RUSTFLAGS_STAGE3 += --no-rpath
132-
endif
133127

134128
# The executables crated during this compilation process have no need to include
135129
# static copies of libstd and libextra. We also generate dynamic versions of all
@@ -373,7 +367,7 @@ LLVM_COMPONENTS=x86 arm mips ipo bitreader bitwriter linker asmparser jit mcjit
373367
interpreter instrumentation
374368

375369
# Only build these LLVM tools
376-
LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt llvm-extract
370+
LLVM_TOOLS=bugpoint llc llvm-ar llvm-as llvm-dis llvm-mc opt
377371

378372
define DEF_LLVM_VARS
379373
# The configure script defines these variables with the target triples
@@ -547,21 +541,8 @@ CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
547541
endif
548542
endif
549543

550-
ifdef CFG_DISABLE_RPATH
551-
ifeq ($$(OSTYPE_$(3)),apple-darwin)
552-
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
553-
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(HLIB$(1)_H_$(3))"
554-
else
555-
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
556-
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(HLIB$(1)_H_$(3))"
557-
endif
558-
else
559-
RPATH_VAR$(1)_T_$(2)_H_$(3) :=
560-
endif
561-
562544
STAGE$(1)_T_$(2)_H_$(3) := \
563-
$$(Q)$$(RPATH_VAR$(1)_T_$(2)_H_$(3)) \
564-
$$(call CFG_RUN_TARG_$(3),$(1), \
545+
$$(Q)$$(call CFG_RUN_TARG_$(3),$(1), \
565546
$$(CFG_VALGRIND_COMPILE$(1)) \
566547
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
567548
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \

branches/dist-snap/configure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
382382
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
383383
opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
384384
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
385-
opt rpath 1 "build rpaths into rustc itself"
386385
valopt prefix "/usr/local" "set installation prefix"
387386
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
388387
valopt llvm-root "" "set LLVM root"

branches/dist-snap/doc/guide-container.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ The `DoubleEndedIterator` trait represents an iterator able to yield elements
336336
from either end of a range. It inherits from the `Iterator` trait and extends
337337
it with the `next_back` function.
338338

339-
A `DoubleEndedIterator` can have its direction changed with the `rev` adaptor,
340-
returning another `DoubleEndedIterator` with `next` and `next_back` exchanged.
339+
A `DoubleEndedIterator` can be flipped with the `invert` adaptor, returning
340+
another `DoubleEndedIterator` with `next` and `next_back` exchanged.
341341

342342
~~~
343343
let xs = [1, 2, 3, 4, 5, 6];
@@ -347,7 +347,7 @@ println!("{:?}", it.next()); // prints `Some(&2)`
347347
println!("{:?}", it.next_back()); // prints `Some(&6)`
348348
349349
// prints `5`, `4` and `3`
350-
for &x in it.rev() {
350+
for &x in it.invert() {
351351
println!("{}", x)
352352
}
353353
~~~
@@ -366,7 +366,7 @@ let mut it = xs.iter().chain(ys.iter()).map(|&x| x * 2);
366366
println!("{:?}", it.next()); // prints `Some(2)`
367367
368368
// prints `16`, `14`, `12`, `10`, `8`, `6`, `4`
369-
for x in it.rev() {
369+
for x in it.invert() {
370370
println!("{}", x);
371371
}
372372
~~~

branches/dist-snap/doc/guide-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl<T: Send> Drop for Unique<T> {
230230
// We need to move the object out of the box, so that
231231
// the destructor is called (at the end of this scope.)
232232
ptr::replace_ptr(self.ptr, x);
233-
free(self.ptr as *mut c_void)
233+
free(self.ptr as *c_void)
234234
}
235235
}
236236
}

branches/dist-snap/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ let y = x.clone();
10961096
10971097
let z = x;
10981098
1099-
// and now, it can no longer be used since it has been moved
1099+
// and now, it can no longer be used since it has been moved from
11001100
~~~
11011101

11021102
The mutability of a value may be changed by moving it to a new owner:

branches/dist-snap/man/rustc.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ To build an executable from a source file with a main function:
122122
To build a library from a source file:
123123
$ rustc --lib hello-lib.rs
124124

125-
To build either with a crate (.rs) file:
126-
$ rustc hello.rs
125+
To build either with a crate (.rc) file:
126+
$ rustc hello.rc
127127

128128
To build an executable with debug info (experimental):
129129
$ rustc -Z debug-info -o hello hello.rs

branches/dist-snap/src/etc/check-summary.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22
# xfail-license
33

4-
import glob
54
import sys
65

76
if __name__ == '__main__':
@@ -25,8 +24,7 @@ def summarise(fname):
2524
def count(t):
2625
return sum(map(lambda (f, s): len(s.get(t, [])), summaries))
2726
logfiles = sys.argv[1:]
28-
for files in map(glob.glob, logfiles):
29-
map(summarise, files)
27+
map(summarise, logfiles)
3028
ok = count('ok')
3129
failed = count('failed')
3230
ignored = count('ignored')

branches/dist-snap/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<language id="rust" _name="Rust" version="2.0" _section="Sources">
66
<metadata>
77
<property name="mimetypes">text/x-rust</property>
8-
<property name="globs">*.rs</property>
8+
<property name="globs">*.rs;*.rc</property>
99
<property name="line-comment-start">//</property>
1010
<property name="block-comment-start">/*</property>
1111
<property name="block-comment-end">*/</property>

branches/dist-snap/src/etc/gedit/share/mime/packages/rust.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<mime-type type="text/x-rust">
33
<comment>Rust Source</comment>
44
<glob pattern="*.rs"/>
5+
<glob pattern="*.rc"/>
56
</mime-type>
67
</mime-info>

branches/dist-snap/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.10-pre" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.10-pre" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
au BufRead,BufNewFile *.rs set filetype=rust
1+
au BufRead,BufNewFile *.rs,*.rc set filetype=rust

branches/dist-snap/src/libextra/bitv.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use std::cmp;
1515
use std::iter::RandomAccessIterator;
16-
use std::iter::{Rev, Enumerate, Repeat, Map, Zip};
16+
use std::iter::{Invert, Enumerate, Repeat, Map, Zip};
1717
use std::num;
1818
use std::ops;
1919
use std::uint;
@@ -387,7 +387,7 @@ impl Bitv {
387387
}
388388
}
389389

390-
/// Flip all bits
390+
/// Invert all bits
391391
#[inline]
392392
pub fn negate(&mut self) {
393393
match self.rep {
@@ -428,8 +428,8 @@ impl Bitv {
428428
}
429429

430430
#[inline]
431-
pub fn rev_iter<'a>(&'a self) -> Rev<Bits<'a>> {
432-
self.iter().rev()
431+
pub fn rev_iter<'a>(&'a self) -> Invert<Bits<'a>> {
432+
self.iter().invert()
433433
}
434434

435435
/// Returns `true` if all bits are 0

branches/dist-snap/src/libextra/c_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ mod tests {
172172
let mem = malloc_raw(n);
173173

174174
CVec::new_with_dtor(mem as *mut u8, n,
175-
proc() { libc::free(mem as *mut c_void); })
175+
proc() { libc::free(mem as *c_void); })
176176
}
177177
}
178178

branches/dist-snap/src/libextra/dlist.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use std::cast;
2626
use std::ptr;
2727
use std::util;
28-
use std::iter::Rev;
28+
use std::iter::Invert;
2929
use std::iter;
3030

3131
use container::Deque;
@@ -368,8 +368,8 @@ impl<T> DList<T> {
368368

369369
/// Provide a reverse iterator
370370
#[inline]
371-
pub fn rev_iter<'a>(&'a self) -> Rev<Items<'a, T>> {
372-
self.iter().rev()
371+
pub fn rev_iter<'a>(&'a self) -> Invert<Items<'a, T>> {
372+
self.iter().invert()
373373
}
374374

375375
/// Provide a forward iterator with mutable references
@@ -388,8 +388,8 @@ impl<T> DList<T> {
388388
}
389389
/// Provide a reverse iterator with mutable references
390390
#[inline]
391-
pub fn mut_rev_iter<'a>(&'a mut self) -> Rev<MutItems<'a, T>> {
392-
self.mut_iter().rev()
391+
pub fn mut_rev_iter<'a>(&'a mut self) -> Invert<MutItems<'a, T>> {
392+
self.mut_iter().invert()
393393
}
394394

395395

@@ -401,8 +401,8 @@ impl<T> DList<T> {
401401

402402
/// Consume the list into an iterator yielding elements by value, in reverse
403403
#[inline]
404-
pub fn move_rev_iter(self) -> Rev<MoveItems<T>> {
405-
self.move_iter().rev()
404+
pub fn move_rev_iter(self) -> Invert<MoveItems<T>> {
405+
self.move_iter().invert()
406406
}
407407
}
408408

branches/dist-snap/src/libextra/flate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn deflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
5353
assert!(res as int != 0);
5454
let out = vec::raw::from_buf_raw(res as *u8,
5555
outsz as uint);
56-
libc::free(res as *mut c_void);
56+
libc::free(res);
5757
out
5858
}
5959
}
@@ -76,7 +76,7 @@ fn inflate_bytes_internal(bytes: &[u8], flags: c_int) -> ~[u8] {
7676
assert!(res as int != 0);
7777
let out = vec::raw::from_buf_raw(res as *u8,
7878
outsz as uint);
79-
libc::free(res as *mut c_void);
79+
libc::free(res);
8080
out
8181
}
8282
}

branches/dist-snap/src/libextra/ringbuf.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
use std::num;
1717
use std::vec;
18-
use std::iter::{Rev, RandomAccessIterator};
18+
use std::iter::{Invert, RandomAccessIterator};
1919

2020
use container::Deque;
2121

@@ -192,8 +192,8 @@ impl<T> RingBuf<T> {
192192
}
193193

194194
/// Back-to-front iterator.
195-
pub fn rev_iter<'a>(&'a self) -> Rev<Items<'a, T>> {
196-
self.iter().rev()
195+
pub fn rev_iter<'a>(&'a self) -> Invert<Items<'a, T>> {
196+
self.iter().invert()
197197
}
198198

199199
/// Front-to-back iterator which returns mutable values.
@@ -223,8 +223,8 @@ impl<T> RingBuf<T> {
223223
}
224224

225225
/// Back-to-front iterator which returns mutable values.
226-
pub fn mut_rev_iter<'a>(&'a mut self) -> Rev<MutItems<'a, T>> {
227-
self.mut_iter().rev()
226+
pub fn mut_rev_iter<'a>(&'a mut self) -> Invert<MutItems<'a, T>> {
227+
self.mut_iter().invert()
228228
}
229229
}
230230

branches/dist-snap/src/libextra/smallintmap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#[allow(missing_doc)];
1717

18-
use std::iter::{Enumerate, FilterMap, Rev};
18+
use std::iter::{Enumerate, FilterMap, Invert};
1919
use std::util::replace;
2020
use std::vec;
2121

@@ -140,14 +140,14 @@ impl<V> SmallIntMap<V> {
140140
/// An iterator visiting all key-value pairs in descending order by the keys.
141141
/// Iterator element type is (uint, &'r V)
142142
pub fn rev_iter<'r>(&'r self) -> RevEntries<'r, V> {
143-
self.iter().rev()
143+
self.iter().invert()
144144
}
145145

146146
/// An iterator visiting all key-value pairs in descending order by the keys,
147147
/// with mutable references to the values
148148
/// Iterator element type is (uint, &'r mut V)
149149
pub fn mut_rev_iter<'r>(&'r mut self) -> RevMutEntries <'r, V> {
150-
self.mut_iter().rev()
150+
self.mut_iter().invert()
151151
}
152152

153153
/// Empties the hash map, moving all values into the specified closure
@@ -241,7 +241,7 @@ pub struct Entries<'a, T> {
241241

242242
iterator!(impl Entries -> (uint, &'a T), get_ref)
243243
double_ended_iterator!(impl Entries -> (uint, &'a T), get_ref)
244-
pub type RevEntries<'a, T> = Rev<Entries<'a, T>>;
244+
pub type RevEntries<'a, T> = Invert<Entries<'a, T>>;
245245

246246
pub struct MutEntries<'a, T> {
247247
priv front: uint,
@@ -251,7 +251,7 @@ pub struct MutEntries<'a, T> {
251251

252252
iterator!(impl MutEntries -> (uint, &'a mut T), get_mut_ref)
253253
double_ended_iterator!(impl MutEntries -> (uint, &'a mut T), get_mut_ref)
254-
pub type RevMutEntries<'a, T> = Rev<MutEntries<'a, T>>;
254+
pub type RevMutEntries<'a, T> = Invert<MutEntries<'a, T>>;
255255

256256
#[cfg(test)]
257257
mod test_map {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ pub fn wait_for_other_tasks() {
4545
TASK_LOCK.wait();
4646
}
4747
TASK_LOCK.unlock();
48-
TASK_LOCK.destroy();
4948
}
5049
}

0 commit comments

Comments
 (0)