Skip to content

Commit b639004

Browse files
committed
---
yaml --- r: 50155 b: refs/heads/auto c: fa70709 h: refs/heads/master i: 50153: 88a44b3 50151: c9a0ed7 v: v3
1 parent 1e1eed8 commit b639004

File tree

10 files changed

+135
-170
lines changed

10 files changed

+135
-170
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 9aa0cedc84792e711f49951a2dfdc9f1586d5d38
17+
refs/heads/auto: fa70709e07983fb62d1fddadac0987c79e836d23
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/configure

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,9 @@ validate_opt () {
136136
isArgValid=1
137137
fi
138138
done
139-
if [ "$arg" = "--help" ]
139+
if test $isArgValid -eq 0
140140
then
141-
echo ""
142-
echo "No more help available for Configure options,"
143-
echo "check the Uncyclo or join our IRC channel"
144-
break
145-
else
146-
if test $isArgValid -eq 0
147-
then
148-
err "Option '$arg' is not recognized"
149-
fi
141+
err "Option '$arg' is not recognized"
150142
fi
151143
done
152144
}
@@ -274,42 +266,13 @@ case $CFG_OSTYPE in
274266
MINGW32*)
275267
CFG_OSTYPE=pc-mingw32
276268
;;
277-
# Thad's Cygwin identifers below
278-
279-
# Vista 32 bit
280-
CYGWIN_NT-6.0)
281-
CFG_OSTYPE=pc-mingw32
282-
CFG_CPUTYPE=i686
283-
;;
284-
285-
# Vista 64 bit
286-
CYGWIN_NT-6.0-WOW64)
287-
CFG_OSTYPE=w64-mingw32
288-
CFG_CPUTYPE=x86_64
289-
;;
290-
291-
# Win 7 32 bit
292-
CYGWIN_NT-6.1)
293-
CFG_OSTYPE=pc-mingw32
294-
CFG_CPUTYPE=i686
295-
;;
296269

297-
# Win 7 64 bit
298-
CYGWIN_NT-6.1-WOW64)
299-
CFG_OSTYPE=w64-mingw32
300-
CFG_CPUTYPE=x86_64
301-
;;
302-
303-
# We do not detect other OS such as XP/2003 using 64 bit using uname.
304-
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
305270
*)
306271
err "unknown OS type: $CFG_OSTYPE"
307272
;;
308273
esac
309274

310275

311-
if [ -z "$CFG_CPUTYPE" ]
312-
then
313276
case $CFG_CPUTYPE in
314277

315278
i386 | i486 | i686 | i786 | x86)
@@ -327,7 +290,6 @@ case $CFG_CPUTYPE in
327290
*)
328291
err "unknown CPU type: $CFG_CPUTYPE"
329292
esac
330-
fi
331293

332294
# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
333295
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]

branches/auto/src/libcore/rt/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Task {
311311
};
312312
}
313313

314-
static priv fn build_start_wrapper(start: ~fn()) -> ~fn() {
314+
priv fn build_start_wrapper(start: ~fn()) -> ~fn() {
315315
// XXX: The old code didn't have this extra allocation
316316
let wrapper: ~fn() = || {
317317
start();

branches/auto/src/libcore/trie.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1313
use prelude::*;
1414

15-
// FIXME: #3469: need to manually update TrieNode when SHIFT changes
1615
// FIXME: #5244: need to manually update the TrieNode constructor
1716
const SHIFT: uint = 4;
1817
const SIZE: uint = 1 << SHIFT;
@@ -162,12 +161,15 @@ pub struct TrieSet {
162161

163162
impl BaseIter<uint> for TrieSet {
164163
/// Visit all values in order
164+
#[inline(always)]
165165
fn each(&self, f: &fn(&uint) -> bool) { self.map.each_key(f) }
166+
#[inline(always)]
166167
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
167168
}
168169

169170
impl ReverseIter<uint> for TrieSet {
170171
/// Visit all values in reverse order
172+
#[inline(always)]
171173
fn each_reverse(&self, f: &fn(&uint) -> bool) {
172174
self.map.each_key_reverse(f)
173175
}
@@ -189,7 +191,7 @@ impl Mutable for TrieSet {
189191
fn clear(&mut self) { self.map.clear() }
190192
}
191193

192-
impl TrieSet {
194+
pub impl TrieSet {
193195
/// Create an empty TrieSet
194196
#[inline(always)]
195197
fn new() -> TrieSet {
@@ -215,7 +217,7 @@ impl TrieSet {
215217

216218
struct TrieNode<T> {
217219
count: uint,
218-
children: [Child<T> * 16] // FIXME: #3469: can't use the SIZE constant yet
220+
children: [Child<T> * SIZE]
219221
}
220222

221223
impl<T> TrieNode<T> {
@@ -301,7 +303,6 @@ fn insert<T>(count: &mut uint, child: &mut Child<T>, key: uint, value: T,
301303
added = insert(&mut x.count, &mut x.children[chunk(key, idx)], key,
302304
value, idx + 1);
303305
Internal(x)
304-
305306
}
306307
Nothing => {
307308
*count += 1;

branches/auto/src/librustpkg/rustpkg.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct PackageScript {
5757
}
5858

5959
impl PackageScript {
60-
static fn parse(parent: &Path) -> Result<PackageScript, ~str> {
60+
fn parse(parent: &Path) -> Result<PackageScript, ~str> {
6161
let script = parent.push(~"pkg.rs");
6262

6363
if !os::path_exists(&script) {

branches/auto/src/libstd/priority_queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub impl <T:Ord> PriorityQueue<T> {
112112
while end > 1 {
113113
end -= 1;
114114
q.data[end] <-> q.data[0];
115-
unsafe { q.siftdown_range(0, end) } // purity-checking workaround
115+
q.siftdown_range(0, end)
116116
}
117117
q.to_vec()
118118
}
@@ -126,7 +126,7 @@ pub impl <T:Ord> PriorityQueue<T> {
126126
let mut n = q.len() / 2;
127127
while n > 0 {
128128
n -= 1;
129-
unsafe { q.siftdown(n) }; // purity-checking workaround
129+
q.siftdown(n)
130130
}
131131
q
132132
}

0 commit comments

Comments
 (0)