Skip to content

Commit 90b4a9e

Browse files
committed
---
yaml --- r: 166457 b: refs/heads/snap-stage3 c: 53c5fcb h: refs/heads/master i: 166455: 7c1eb2c v: v3
1 parent 93f6c4e commit 90b4a9e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 21ea66f47ad059279628736b31a3a8bddd2710d3
4+
refs/heads/snap-stage3: 53c5fcb99fc8c62b8723032280fab3dc06fef973
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libcore/ops.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,11 @@ macro_rules! countable_impl(
882882
countable_impl!(uint u8 u16 u32 u64 int i8 i16 i32 i64)
883883

884884
/// An unbounded range.
885+
#[lang="full_range"]
885886
pub struct FullRange;
886887

887888
/// A range which i bounded at both ends.
889+
#[lang="range"]
888890
pub struct Range<Idx> {
889891
/// The lower bound of the range (inclusive).
890892
pub start: Idx,
@@ -926,6 +928,7 @@ impl<Idx: Clone + Countable> DoubleEndedIterator<Idx> for Range<Idx> {
926928
}
927929

928930
/// A range which is only bounded below.
931+
#[lang="range_from"]
929932
pub struct RangeFrom<Idx> {
930933
/// The lower bound of the range (inclusive).
931934
pub start: Idx,

branches/snap-stage3/src/librustc/middle/lang_items.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ lets_do_this! {
267267
IndexMutTraitLangItem, "index_mut", index_mut_trait;
268268
SliceTraitLangItem, "slice", slice_trait;
269269
SliceMutTraitLangItem, "slice_mut", slice_mut_trait;
270+
RangeStructLangItem, "range", range_struct;
271+
RangeFromStructLangItem, "range_from", range_from_struct;
272+
FullRangeStructLangItem, "full_range", full_range_struct;
270273

271274
UnsafeTypeLangItem, "unsafe", unsafe_type;
272275

0 commit comments

Comments
 (0)