Skip to content

Commit 424d1b6

Browse files
committed
---
yaml --- r: 129785 b: refs/heads/auto c: 2e92c67 h: refs/heads/master i: 129783: 7d17af6 v: v3
1 parent e0de83d commit 424d1b6

File tree

278 files changed

+7075
-3399
lines changed

Some content is hidden

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

278 files changed

+7075
-3399
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 9a8233d3772fbdb3d496aac3e4693e6d4c30e125
16+
refs/heads/auto: 2e92c67dc0318a52fe42c3c0bca408f76c7feb61
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ DEPS_test := std getopts serialize rbml term time regex native:rust_test_helpers
9696
DEPS_time := std serialize
9797
DEPS_rand := core
9898
DEPS_url := std
99-
DEPS_log := std
99+
DEPS_log := std regex
100100
DEPS_regex := std
101101
DEPS_regex_macros = rustc syntax std regex
102102
DEPS_fmt_macros = std

branches/auto/src/liballoc/boxed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ pub trait BoxAny {
105105
}
106106

107107
#[stable]
108-
impl BoxAny for Box<Any> {
108+
impl BoxAny for Box<Any+'static> {
109109
#[inline]
110-
fn downcast<T: 'static>(self) -> Result<Box<T>, Box<Any>> {
110+
fn downcast<T: 'static>(self) -> Result<Box<T>, Box<Any+'static>> {
111111
if self.is::<T>() {
112112
unsafe {
113113
// Get the raw representation of the trait object
@@ -132,7 +132,7 @@ impl<T: fmt::Show> fmt::Show for Box<T> {
132132
}
133133
}
134134

135-
impl fmt::Show for Box<Any> {
135+
impl fmt::Show for Box<Any+'static> {
136136
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
137137
f.pad("Box<Any>")
138138
}

branches/auto/src/libcollections/dlist.rs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,46 @@ struct Node<T> {
4949
value: T,
5050
}
5151

52-
/// An iterator over references to the items of a `DList`.
52+
/// Note: stage0-specific version that lacks bound on A.
53+
#[cfg(stage0)]
5354
pub struct Items<'a, T> {
5455
head: &'a Link<T>,
5556
tail: Rawlink<Node<T>>,
5657
nelem: uint,
5758
}
5859

60+
/// An iterator over references to the items of a `DList`.
61+
#[cfg(not(stage0))]
62+
pub struct Items<'a, T:'a> {
63+
head: &'a Link<T>,
64+
tail: Rawlink<Node<T>>,
65+
nelem: uint,
66+
}
67+
5968
// FIXME #11820: the &'a Option<> of the Link stops clone working.
6069
impl<'a, T> Clone for Items<'a, T> {
6170
fn clone(&self) -> Items<'a, T> { *self }
6271
}
6372

64-
/// An iterator over mutable references to the items of a `DList`.
73+
/// Note: stage0-specific version that lacks bound on A.
74+
#[cfg(stage0)]
6575
pub struct MutItems<'a, T> {
6676
list: &'a mut DList<T>,
6777
head: Rawlink<Node<T>>,
6878
tail: Rawlink<Node<T>>,
6979
nelem: uint,
7080
}
7181

72-
/// A consuming iterator over the items of a `DList`.
82+
/// An iterator over mutable references to the items of a `DList`.
83+
#[cfg(not(stage0))]
84+
pub struct MutItems<'a, T:'a> {
85+
list: &'a mut DList<T>,
86+
head: Rawlink<Node<T>>,
87+
tail: Rawlink<Node<T>>,
88+
nelem: uint,
89+
}
90+
91+
/// An iterator over mutable references to the items of a `DList`.
7392
#[deriving(Clone)]
7493
pub struct MoveItems<T> {
7594
list: DList<T>

branches/auto/src/libcollections/priority_queue.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,18 @@ impl<T: Ord> PriorityQueue<T> {
515515
}
516516
}
517517

518-
/// `PriorityQueue` iterator.
518+
/// Note: stage0-specific version that lacks bound on A.
519+
#[cfg(stage0)]
519520
pub struct Items <'a, T> {
520521
iter: slice::Items<'a, T>,
521522
}
522523

524+
/// `PriorityQueue` iterator.
525+
#[cfg(not(stage0))]
526+
pub struct Items <'a, T:'a> {
527+
iter: slice::Items<'a, T>,
528+
}
529+
523530
impl<'a, T> Iterator<&'a T> for Items<'a, T> {
524531
#[inline]
525532
fn next(&mut self) -> Option<(&'a T)> { self.iter.next() }

branches/auto/src/libcollections/ringbuf.rs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,24 @@ impl<T> RingBuf<T> {
293293
}
294294
}
295295

296-
/// `RingBuf` iterator.
296+
/// Note: stage0-specific version that lacks bound on A.
297+
#[cfg(stage0)]
297298
pub struct Items<'a, T> {
298299
lo: uint,
299300
index: uint,
300301
rindex: uint,
301302
elts: &'a [Option<T>],
302303
}
303304

305+
/// `RingBuf` iterator.
306+
#[cfg(not(stage0))]
307+
pub struct Items<'a, T:'a> {
308+
lo: uint,
309+
index: uint,
310+
rindex: uint,
311+
elts: &'a [Option<T>],
312+
}
313+
304314
impl<'a, T> Iterator<&'a T> for Items<'a, T> {
305315
#[inline]
306316
fn next(&mut self) -> Option<&'a T> {
@@ -348,13 +358,22 @@ impl<'a, T> RandomAccessIterator<&'a T> for Items<'a, T> {
348358
}
349359
}
350360

351-
/// `RingBuf` mutable iterator.
361+
/// Note: stage0-specific version that lacks bound on A.
362+
#[cfg(stage0)]
352363
pub struct MutItems<'a, T> {
353364
remaining1: &'a mut [Option<T>],
354365
remaining2: &'a mut [Option<T>],
355366
nelts: uint,
356367
}
357368

369+
/// `RingBuf` mutable iterator.
370+
#[cfg(not(stage0))]
371+
pub struct MutItems<'a, T:'a> {
372+
remaining1: &'a mut [Option<T>],
373+
remaining2: &'a mut [Option<T>],
374+
nelts: uint,
375+
}
376+
358377
impl<'a, T> Iterator<&'a mut T> for MutItems<'a, T> {
359378
#[inline]
360379
#[allow(deprecated)] // mut_shift_ref

branches/auto/src/libcollections/smallintmap.rs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,19 +489,37 @@ macro_rules! double_ended_iterator {
489489
}
490490
}
491491

492-
/// Forward iterator over a map.
492+
/// Note: stage0-specific version that lacks bound on A.
493+
#[cfg(stage0)]
493494
pub struct Entries<'a, T> {
494495
front: uint,
495496
back: uint,
496497
iter: slice::Items<'a, Option<T>>
497498
}
498499

500+
/// Forward iterator over a map.
501+
#[cfg(not(stage0))]
502+
pub struct Entries<'a, T:'a> {
503+
front: uint,
504+
back: uint,
505+
iter: slice::Items<'a, Option<T>>
506+
}
507+
499508
iterator!(impl Entries -> (uint, &'a T), get_ref)
500509
double_ended_iterator!(impl Entries -> (uint, &'a T), get_ref)
501510

511+
/// Note: stage0-specific version that lacks bound on A.
512+
#[cfg(stage0)]
513+
pub struct MutEntries<'a, T> {
514+
front: uint,
515+
back: uint,
516+
iter: slice::MutItems<'a, Option<T>>
517+
}
518+
502519
/// Forward iterator over the key-value pairs of a map, with the
503520
/// values being mutable.
504-
pub struct MutEntries<'a, T> {
521+
#[cfg(not(stage0))]
522+
pub struct MutEntries<'a, T:'a> {
505523
front: uint,
506524
back: uint,
507525
iter: slice::MutItems<'a, Option<T>>

0 commit comments

Comments
 (0)