1
Fork 0

Make the fields of RangeInclusive private.

Added new()/start()/end() methods to RangeInclusive.

Changed the lowering of `..=` to use RangeInclusive::new().
This commit is contained in:
kennytm 2018-04-06 02:03:22 +08:00
parent 64e6dda0bc
commit fba903a435
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
6 changed files with 78 additions and 6 deletions

View file

@ -122,7 +122,7 @@
#![feature(on_unimplemented)]
#![feature(exact_chunks)]
#![feature(pointer_methods)]
#![feature(inclusive_range_fields)]
#![feature(inclusive_range_methods)]
#![cfg_attr(stage0, feature(generic_param_attrs))]
#![cfg_attr(not(test), feature(fn_traits, i128))]