Skip to content

Commit 3109b0a

Browse files
committed
---
yaml --- r: 272830 b: refs/heads/beta c: 24cc902 h: refs/heads/master
1 parent 9ed56db commit 3109b0a

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 15a8a296b724599a1eda807c3057338b11cb94bf
26+
refs/heads/beta: 24cc90262bd5ec52aa421103ef7c89a0697b046d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libcollections/range.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub trait RangeArgument<T> {
3535
}
3636
}
3737

38+
// FIXME add inclusive ranges to RangeArgument
3839

3940
impl<T> RangeArgument<T> for RangeFull {}
4041

branches/beta/src/libcore/iter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4417,7 +4417,9 @@ macro_rules! range_exact_iter_impl {
44174417
#[stable(feature = "rust1", since = "1.0.0")]
44184418
impl ExactSizeIterator for ops::Range<$t> { }
44194419

4420-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
4420+
#[unstable(feature = "inclusive_range",
4421+
reason = "recently added, follows RFC",
4422+
issue = "28237")]
44214423
impl ExactSizeIterator for ops::RangeInclusive<$t> { }
44224424
)*)
44234425
}

branches/beta/src/libcore/ops.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
14681468

14691469
/// An unbounded range.
14701470
#[derive(Copy, Clone, PartialEq, Eq)]
1471-
#[cfg_attr(stage0, lang = "range_full")] // TODO remove attribute after next snapshot
1471+
#[cfg_attr(stage0, lang = "range_full")] // FIXME remove attribute after next snapshot
14721472
#[stable(feature = "rust1", since = "1.0.0")]
14731473
pub struct RangeFull;
14741474

@@ -1481,7 +1481,7 @@ impl fmt::Debug for RangeFull {
14811481

14821482
/// A (half-open) range which is bounded at both ends.
14831483
#[derive(Clone, PartialEq, Eq)]
1484-
#[cfg_attr(stage0, lang = "range")] // TODO remove attribute after next snapshot
1484+
#[cfg_attr(stage0, lang = "range")] // FIXME remove attribute after next snapshot
14851485
#[stable(feature = "rust1", since = "1.0.0")]
14861486
pub struct Range<Idx> {
14871487
/// The lower bound of the range (inclusive).
@@ -1501,7 +1501,7 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
15011501

15021502
/// A range which is only bounded below.
15031503
#[derive(Clone, PartialEq, Eq)]
1504-
#[cfg_attr(stage0, lang = "range_from")] // TODO remove attribute after next snapshot
1504+
#[cfg_attr(stage0, lang = "range_from")] // FIXME remove attribute after next snapshot
15051505
#[stable(feature = "rust1", since = "1.0.0")]
15061506
pub struct RangeFrom<Idx> {
15071507
/// The lower bound of the range (inclusive).
@@ -1518,7 +1518,7 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeFrom<Idx> {
15181518

15191519
/// A range which is only bounded above.
15201520
#[derive(Copy, Clone, PartialEq, Eq)]
1521-
#[cfg_attr(stage0, lang = "range_to")] // TODO remove attribute after next snapshot
1521+
#[cfg_attr(stage0, lang = "range_to")] // FIXME remove attribute after next snapshot
15221522
#[stable(feature = "rust1", since = "1.0.0")]
15231523
pub struct RangeTo<Idx> {
15241524
/// The upper bound of the range (exclusive).
@@ -1586,7 +1586,9 @@ impl<Idx: PartialOrd + One + Sub<Output=Idx>> From<Range<Idx>> for RangeInclusiv
15861586
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
15871587
pub struct RangeToInclusive<Idx> {
15881588
/// The upper bound of the range (inclusive)
1589-
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1589+
#[unstable(feature = "inclusive_range",
1590+
reason = "recently added, follows RFC",
1591+
issue = "28237")]
15901592
pub end: Idx,
15911593
}
15921594

branches/beta/src/libcore/slice.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ fn slice_index_order_fail(index: usize, end: usize) -> ! {
533533
panic!("slice index starts at {} but ends at {}", index, end);
534534
}
535535

536+
// FIXME implement indexing with inclusive ranges
537+
536538
#[stable(feature = "rust1", since = "1.0.0")]
537539
impl<T> ops::Index<ops::Range<usize>> for [T] {
538540
type Output = [T];

0 commit comments

Comments
 (0)