File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -882,9 +882,11 @@ macro_rules! countable_impl(
882
882
countable_impl ! ( uint u8 u16 u32 u64 int i8 i16 i32 i64 )
883
883
884
884
/// An unbounded range.
885
+ #[ lang="full_range" ]
885
886
pub struct FullRange ;
886
887
887
888
/// A range which i bounded at both ends.
889
+ #[ lang="range" ]
888
890
pub struct Range < Idx > {
889
891
/// The lower bound of the range (inclusive).
890
892
pub start : Idx ,
@@ -926,6 +928,7 @@ impl<Idx: Clone + Countable> DoubleEndedIterator<Idx> for Range<Idx> {
926
928
}
927
929
928
930
/// A range which is only bounded below.
931
+ #[ lang="range_from" ]
929
932
pub struct RangeFrom < Idx > {
930
933
/// The lower bound of the range (inclusive).
931
934
pub start : Idx ,
Original file line number Diff line number Diff line change @@ -267,6 +267,9 @@ lets_do_this! {
267
267
IndexMutTraitLangItem , "index_mut" , index_mut_trait;
268
268
SliceTraitLangItem , "slice" , slice_trait;
269
269
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;
270
273
271
274
UnsafeTypeLangItem , "unsafe" , unsafe_type;
272
275
You can’t perform that action at this time.
0 commit comments