Keep the fields of RangeInclusive unstable.
This commit is contained in:
parent
6399d16cfd
commit
939cfa251a
@ -123,6 +123,7 @@
|
|||||||
#![feature(on_unimplemented)]
|
#![feature(on_unimplemented)]
|
||||||
#![feature(exact_chunks)]
|
#![feature(exact_chunks)]
|
||||||
#![feature(pointer_methods)]
|
#![feature(pointer_methods)]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
#![cfg_attr(not(test), feature(fn_traits, placement_new_protocol, swap_with_slice, i128))]
|
#![cfg_attr(not(test), feature(fn_traits, placement_new_protocol, swap_with_slice, i128))]
|
||||||
#![cfg_attr(test, feature(test, box_heap))]
|
#![cfg_attr(test, feature(test, box_heap))]
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#![feature(unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
#![feature(unicode)]
|
#![feature(unicode)]
|
||||||
#![feature(exact_chunks)]
|
#![feature(exact_chunks)]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
extern crate alloc_system;
|
extern crate alloc_system;
|
||||||
extern crate std_unicode;
|
extern crate std_unicode;
|
||||||
|
@ -283,6 +283,8 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
/// #![feature(inclusive_range_fields)]
|
||||||
|
///
|
||||||
/// assert_eq!((3..=5), std::ops::RangeInclusive { start: 3, end: 5 });
|
/// assert_eq!((3..=5), std::ops::RangeInclusive { start: 3, end: 5 });
|
||||||
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
|
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
|
||||||
///
|
///
|
||||||
@ -294,10 +296,10 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
|
|||||||
#[stable(feature = "inclusive_range", since = "1.26.0")]
|
#[stable(feature = "inclusive_range", since = "1.26.0")]
|
||||||
pub struct RangeInclusive<Idx> {
|
pub struct RangeInclusive<Idx> {
|
||||||
/// The lower bound of the range (inclusive).
|
/// The lower bound of the range (inclusive).
|
||||||
#[stable(feature = "inclusive_range", since = "1.26.0")]
|
#[unstable(feature = "inclusive_range_fields", issue = "49022")]
|
||||||
pub start: Idx,
|
pub start: Idx,
|
||||||
/// The upper bound of the range (inclusive).
|
/// The upper bound of the range (inclusive).
|
||||||
#[stable(feature = "inclusive_range", since = "1.26.0")]
|
#[unstable(feature = "inclusive_range_fields", issue = "49022")]
|
||||||
pub end: Idx,
|
pub end: Idx,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
#![feature(exact_chunks)]
|
#![feature(exact_chunks)]
|
||||||
#![feature(atomic_nand)]
|
#![feature(atomic_nand)]
|
||||||
#![feature(reverse_bits)]
|
#![feature(reverse_bits)]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
extern crate core;
|
extern crate core;
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
#![feature(trusted_len)]
|
#![feature(trusted_len)]
|
||||||
#![feature(catch_expr)]
|
#![feature(catch_expr)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
#![recursion_limit="512"]
|
#![recursion_limit="512"]
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
|
|||||||
#![feature(nonzero)]
|
#![feature(nonzero)]
|
||||||
#![feature(underscore_lifetimes)]
|
#![feature(underscore_lifetimes)]
|
||||||
#![cfg_attr(stage0, feature(never_type))]
|
#![cfg_attr(stage0, feature(never_type))]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
extern crate arena;
|
extern crate arena;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#![feature(slice_patterns)]
|
#![feature(slice_patterns)]
|
||||||
#![feature(conservative_impl_trait)]
|
#![feature(conservative_impl_trait)]
|
||||||
#![feature(optin_builtin_traits)]
|
#![feature(optin_builtin_traits)]
|
||||||
|
#![feature(inclusive_range_fields)]
|
||||||
|
|
||||||
use rustc::dep_graph::WorkProduct;
|
use rustc::dep_graph::WorkProduct;
|
||||||
use syntax_pos::symbol::Symbol;
|
use syntax_pos::symbol::Symbol;
|
||||||
|
Loading…
Reference in New Issue
Block a user