Skip to content

Commit d15d559

Browse files
committed
Register new snapshots
1 parent 51d0d06 commit d15d559

Some content is hidden

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

52 files changed

+11
-724
lines changed

src/libcollections/dlist.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ struct Node<T> {
4949
value: T,
5050
}
5151

52-
/// Note: stage0-specific version that lacks bound on A.
53-
#[cfg(stage0)]
54-
pub struct Items<'a, T> {
55-
head: &'a Link<T>,
56-
tail: Rawlink<Node<T>>,
57-
nelem: uint,
58-
}
59-
6052
/// An iterator over references to the items of a `DList`.
61-
#[cfg(not(stage0))]
6253
pub struct Items<'a, T:'a> {
6354
head: &'a Link<T>,
6455
tail: Rawlink<Node<T>>,
@@ -70,17 +61,7 @@ impl<'a, T> Clone for Items<'a, T> {
7061
fn clone(&self) -> Items<'a, T> { *self }
7162
}
7263

73-
/// Note: stage0-specific version that lacks bound on A.
74-
#[cfg(stage0)]
75-
pub struct MutItems<'a, T> {
76-
list: &'a mut DList<T>,
77-
head: Rawlink<Node<T>>,
78-
tail: Rawlink<Node<T>>,
79-
nelem: uint,
80-
}
81-
8264
/// An iterator over mutable references to the items of a `DList`.
83-
#[cfg(not(stage0))]
8465
pub struct MutItems<'a, T:'a> {
8566
list: &'a mut DList<T>,
8667
head: Rawlink<Node<T>>,

src/libcollections/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#![feature(unsafe_destructor, import_shadowing)]
2424
#![no_std]
2525

26-
// NOTE(stage0, pcwalton): Remove after snapshot.
27-
#![allow(unknown_features)]
28-
2926
#[phase(plugin, link)] extern crate core;
3027
extern crate unicode;
3128
extern crate alloc;

src/libcollections/priority_queue.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,7 @@ impl<T: Ord> PriorityQueue<T> {
515515
}
516516
}
517517

518-
/// Note: stage0-specific version that lacks bound on A.
519-
#[cfg(stage0)]
520-
pub struct Items <'a, T> {
521-
iter: slice::Items<'a, T>,
522-
}
523-
524518
/// `PriorityQueue` iterator.
525-
#[cfg(not(stage0))]
526519
pub struct Items <'a, T:'a> {
527520
iter: slice::Items<'a, T>,
528521
}

src/libcollections/ringbuf.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -293,17 +293,7 @@ impl<T> RingBuf<T> {
293293
}
294294
}
295295

296-
/// Note: stage0-specific version that lacks bound on A.
297-
#[cfg(stage0)]
298-
pub struct Items<'a, T> {
299-
lo: uint,
300-
index: uint,
301-
rindex: uint,
302-
elts: &'a [Option<T>],
303-
}
304-
305296
/// `RingBuf` iterator.
306-
#[cfg(not(stage0))]
307297
pub struct Items<'a, T:'a> {
308298
lo: uint,
309299
index: uint,
@@ -358,16 +348,7 @@ impl<'a, T> RandomAccessIterator<&'a T> for Items<'a, T> {
358348
}
359349
}
360350

361-
/// Note: stage0-specific version that lacks bound on A.
362-
#[cfg(stage0)]
363-
pub struct MutItems<'a, T> {
364-
remaining1: &'a mut [Option<T>],
365-
remaining2: &'a mut [Option<T>],
366-
nelts: uint,
367-
}
368-
369351
/// `RingBuf` mutable iterator.
370-
#[cfg(not(stage0))]
371352
pub struct MutItems<'a, T:'a> {
372353
remaining1: &'a mut [Option<T>],
373354
remaining2: &'a mut [Option<T>],

src/libcollections/smallintmap.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -489,16 +489,7 @@ macro_rules! double_ended_iterator {
489489
}
490490
}
491491

492-
/// Note: stage0-specific version that lacks bound on A.
493-
#[cfg(stage0)]
494-
pub struct Entries<'a, T> {
495-
front: uint,
496-
back: uint,
497-
iter: slice::Items<'a, Option<T>>
498-
}
499-
500492
/// Forward iterator over a map.
501-
#[cfg(not(stage0))]
502493
pub struct Entries<'a, T:'a> {
503494
front: uint,
504495
back: uint,
@@ -508,17 +499,8 @@ pub struct Entries<'a, T:'a> {
508499
iterator!(impl Entries -> (uint, &'a T), get_ref)
509500
double_ended_iterator!(impl Entries -> (uint, &'a T), get_ref)
510501

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-
519502
/// Forward iterator over the key-value pairs of a map, with the
520503
/// values being mutable.
521-
#[cfg(not(stage0))]
522504
pub struct MutEntries<'a, T:'a> {
523505
front: uint,
524506
back: uint,

src/libcollections/treemap.rs

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -668,20 +668,7 @@ impl<K: Ord, V> TreeMap<K, V> {
668668
}
669669
}
670670

671-
/// Note: stage0-specific version that lacks bound on A.
672-
#[cfg(stage0)]
673-
pub struct Entries<'a, K, V> {
674-
stack: Vec<&'a TreeNode<K, V>>,
675-
// See the comment on MutEntries; this is just to allow
676-
// code-sharing (for this immutable-values iterator it *could* very
677-
// well be Option<&'a TreeNode<K,V>>).
678-
node: *const TreeNode<K, V>,
679-
remaining_min: uint,
680-
remaining_max: uint
681-
}
682-
683671
/// Lazy forward iterator over a map
684-
#[cfg(not(stage0))]
685672
pub struct Entries<'a, K:'a, V:'a> {
686673
stack: Vec<&'a TreeNode<K, V>>,
687674
// See the comment on MutEntries; this is just to allow
@@ -692,49 +679,13 @@ pub struct Entries<'a, K:'a, V:'a> {
692679
remaining_max: uint
693680
}
694681

695-
/// Note: stage0-specific version that lacks bound on A.
696-
#[cfg(stage0)]
697-
pub struct RevEntries<'a, K, V> {
698-
iter: Entries<'a, K, V>,
699-
}
700-
701682
/// Lazy backward iterator over a map
702-
#[cfg(not(stage0))]
703683
pub struct RevEntries<'a, K:'a, V:'a> {
704684
iter: Entries<'a, K, V>,
705685
}
706686

707-
/// Note: stage0-specific version that lacks bound on A.
708-
#[cfg(stage0)]
709-
pub struct MutEntries<'a, K, V> {
710-
stack: Vec<&'a mut TreeNode<K, V>>,
711-
// Unfortunately, we require some unsafe-ness to get around the
712-
// fact that we would be storing a reference *into* one of the
713-
// nodes in the stack.
714-
//
715-
// As far as the compiler knows, this would let us invalidate the
716-
// reference by assigning a new value to this node's position in
717-
// its parent, which would cause this current one to be
718-
// deallocated so this reference would be invalid. (i.e. the
719-
// compilers complaints are 100% correct.)
720-
//
721-
// However, as far as you humans reading this code know (or are
722-
// about to know, if you haven't read far enough down yet), we are
723-
// only reading from the TreeNode.{left,right} fields. the only
724-
// thing that is ever mutated is the .value field (although any
725-
// actual mutation that happens is done externally, by the
726-
// iterator consumer). So, don't be so concerned, rustc, we've got
727-
// it under control.
728-
//
729-
// (This field can legitimately be null.)
730-
node: *mut TreeNode<K, V>,
731-
remaining_min: uint,
732-
remaining_max: uint
733-
}
734-
735687
/// Lazy forward iterator over a map that allows for the mutation of
736688
/// the values.
737-
#[cfg(not(stage0))]
738689
pub struct MutEntries<'a, K:'a, V:'a> {
739690
stack: Vec<&'a mut TreeNode<K, V>>,
740691
// Unfortunately, we require some unsafe-ness to get around the
@@ -761,14 +712,7 @@ pub struct MutEntries<'a, K:'a, V:'a> {
761712
remaining_max: uint
762713
}
763714

764-
/// Note: stage0-specific version that lacks bound on A.
765-
#[cfg(stage0)]
766-
pub struct RevMutEntries<'a, K, V> {
767-
iter: MutEntries<'a, K, V>,
768-
}
769-
770715
/// Lazy backward iterator over a map
771-
#[cfg(not(stage0))]
772716
pub struct RevMutEntries<'a, K:'a, V:'a> {
773717
iter: MutEntries<'a, K, V>,
774718
}
@@ -1375,84 +1319,38 @@ impl<T: Ord> TreeSet<T> {
13751319
}
13761320
}
13771321

1378-
/// Note: stage0-specific version that lacks bound on A.
1379-
#[cfg(stage0)]
1380-
pub struct SetItems<'a, T> {
1381-
iter: Entries<'a, T, ()>
1382-
}
1383-
13841322
/// A lazy forward iterator over a set.
1385-
#[cfg(not(stage0))]
13861323
pub struct SetItems<'a, T:'a> {
13871324
iter: Entries<'a, T, ()>
13881325
}
13891326

1390-
/// Note: stage0-specific version that lacks bound on A.
1391-
#[cfg(stage0)]
1392-
pub struct RevSetItems<'a, T> {
1393-
iter: RevEntries<'a, T, ()>
1394-
}
1395-
13961327
/// A lazy backward iterator over a set.
1397-
#[cfg(not(stage0))]
13981328
pub struct RevSetItems<'a, T:'a> {
13991329
iter: RevEntries<'a, T, ()>
14001330
}
14011331

14021332
/// A lazy forward iterator over a set that consumes the set while iterating.
14031333
pub type MoveSetItems<T> = iter::Map<'static, (T, ()), T, MoveEntries<T, ()>>;
14041334

1405-
/// Note: stage0-specific version that lacks bound on A.
1406-
#[cfg(stage0)]
1407-
pub struct DifferenceItems<'a, T> {
1408-
a: Peekable<&'a T, SetItems<'a, T>>,
1409-
b: Peekable<&'a T, SetItems<'a, T>>,
1410-
}
1411-
14121335
/// A lazy iterator producing elements in the set difference (in-order).
1413-
#[cfg(not(stage0))]
14141336
pub struct DifferenceItems<'a, T:'a> {
14151337
a: Peekable<&'a T, SetItems<'a, T>>,
14161338
b: Peekable<&'a T, SetItems<'a, T>>,
14171339
}
14181340

1419-
/// Note: stage0-specific version that lacks bound on A.
1420-
#[cfg(stage0)]
1421-
pub struct SymDifferenceItems<'a, T> {
1422-
a: Peekable<&'a T, SetItems<'a, T>>,
1423-
b: Peekable<&'a T, SetItems<'a, T>>,
1424-
}
1425-
14261341
/// A lazy iterator producing elements in the set symmetric difference (in-order).
1427-
#[cfg(not(stage0))]
14281342
pub struct SymDifferenceItems<'a, T:'a> {
14291343
a: Peekable<&'a T, SetItems<'a, T>>,
14301344
b: Peekable<&'a T, SetItems<'a, T>>,
14311345
}
14321346

1433-
/// Note: stage0-specific version that lacks bound on A.
1434-
#[cfg(stage0)]
1435-
pub struct IntersectionItems<'a, T> {
1436-
a: Peekable<&'a T, SetItems<'a, T>>,
1437-
b: Peekable<&'a T, SetItems<'a, T>>,
1438-
}
1439-
14401347
/// A lazy iterator producing elements in the set intersection (in-order).
1441-
#[cfg(not(stage0))]
14421348
pub struct IntersectionItems<'a, T:'a> {
14431349
a: Peekable<&'a T, SetItems<'a, T>>,
14441350
b: Peekable<&'a T, SetItems<'a, T>>,
14451351
}
14461352

1447-
/// Note: stage0-specific version that lacks bound on A.
1448-
#[cfg(stage0)]
1449-
pub struct UnionItems<'a, T> {
1450-
a: Peekable<&'a T, SetItems<'a, T>>,
1451-
b: Peekable<&'a T, SetItems<'a, T>>,
1452-
}
1453-
14541353
/// A lazy iterator producing elements in the set union (in-order).
1455-
#[cfg(not(stage0))]
14561354
pub struct UnionItems<'a, T:'a> {
14571355
a: Peekable<&'a T, SetItems<'a, T>>,
14581356
b: Peekable<&'a T, SetItems<'a, T>>,

src/libcollections/trie.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -857,36 +857,16 @@ fn remove<T>(count: &mut uint, child: &mut Child<T>, key: uint,
857857
return ret;
858858
}
859859

860-
/// Note: stage0-specific version that lacks bound on A.
861-
#[cfg(stage0)]
862-
pub struct Entries<'a, T> {
863-
stack: [slice::Items<'a, Child<T>>, .. NUM_CHUNKS],
864-
length: uint,
865-
remaining_min: uint,
866-
remaining_max: uint
867-
}
868-
869860
/// A forward iterator over a map.
870-
#[cfg(not(stage0))]
871861
pub struct Entries<'a, T:'a> {
872862
stack: [slice::Items<'a, Child<T>>, .. NUM_CHUNKS],
873863
length: uint,
874864
remaining_min: uint,
875865
remaining_max: uint
876866
}
877867

878-
/// Note: stage0-specific version that lacks bound on A.
879-
#[cfg(stage0)]
880-
pub struct MutEntries<'a, T> {
881-
stack: [slice::MutItems<'a, Child<T>>, .. NUM_CHUNKS],
882-
length: uint,
883-
remaining_min: uint,
884-
remaining_max: uint
885-
}
886-
887868
/// A forward iterator over the key-value pairs of a map, with the
888869
/// values being mutable.
889-
#[cfg(not(stage0))]
890870
pub struct MutEntries<'a, T:'a> {
891871
stack: [slice::MutItems<'a, Child<T>>, .. NUM_CHUNKS],
892872
length: uint,

src/libcore/cell.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -324,22 +324,12 @@ impl<T: PartialEq> PartialEq for RefCell<T> {
324324

325325
/// Wraps a borrowed reference to a value in a `RefCell` box.
326326
#[unstable]
327-
#[cfg(not(stage0))]
328327
pub struct Ref<'b, T:'b> {
329328
// FIXME #12808: strange name to try to avoid interfering with
330329
// field accesses of the contained type via Deref
331330
_parent: &'b RefCell<T>
332331
}
333332

334-
/// Dox.
335-
#[unstable]
336-
#[cfg(stage0)]
337-
pub struct Ref<'b, T> {
338-
// FIXME #12808: strange name to try to avoid interfering with
339-
// field accesses of the contained type via Deref
340-
_parent: &'b RefCell<T>
341-
}
342-
343333
#[unsafe_destructor]
344334
#[unstable]
345335
impl<'b, T> Drop for Ref<'b, T> {
@@ -379,22 +369,12 @@ pub fn clone_ref<'b, T>(orig: &Ref<'b, T>) -> Ref<'b, T> {
379369

380370
/// Wraps a mutable borrowed reference to a value in a `RefCell` box.
381371
#[unstable]
382-
#[cfg(not(stage0))]
383372
pub struct RefMut<'b, T:'b> {
384373
// FIXME #12808: strange name to try to avoid interfering with
385374
// field accesses of the contained type via Deref
386375
_parent: &'b RefCell<T>
387376
}
388377

389-
/// Dox.
390-
#[unstable]
391-
#[cfg(stage0)]
392-
pub struct RefMut<'b, T> {
393-
// FIXME #12808: strange name to try to avoid interfering with
394-
// field accesses of the contained type via Deref
395-
_parent: &'b RefCell<T>
396-
}
397-
398378
#[unsafe_destructor]
399379
#[unstable]
400380
impl<'b, T> Drop for RefMut<'b, T> {

0 commit comments

Comments
 (0)